Skip to content

classImageIO 03

Member Function Documentation

BOOL ImageIO::CanLoadImage const String filename  )  [inline, virtual]
 

This function is called to check if a file with a given filename can be read by the plugin. The function should not just check the filename extension but should also attempt to open the file and read whatever data (that is usually the file header) to make sure it is in the proper format.

Return TRUE if the file can be read by the plugin.

Definition at line 73 of file ImageIO.h.

References FALSE.

void ImageIO::CloseWrite BOOL  hasaudio  )  [inline]
 

For file format that can store multiple frames in the same file, this function is called when the total number of files have been saved.

Definition at line 121 of file ImageIO.h.

References CloseWriteFrame(), FALSE, and m_isopened.

Here is the call graph for this function:

void ImageIO::CloseWriteFrame BOOL  hasaudio  )  [inline, virtual]
 

This function is called to close a file after the total number of frames have been saved.

Definition at line 79 of file ImageIO.h.

Referenced by CloseWrite().

virtual void ImageIO::GetFilesStartEndFrame const String filename,
int &  start,
int &  end
[inline, virtual]
  Definition at line 74 of file ImageIO.h.

BOOL ImageIO::GetImageIOInfo ImageIOInfo iioinfo  )  [inline, virtual]
 

This function is called when the ImageIO are registered with Animation:Master. The function should fill the ImageIOInfo with the appropriate information.

See also:
ImageIOInfo

Definition at line 76 of file ImageIO.h.

References FALSE.

int ImageIO::IsFileOpen  )  [inline, virtual]
 

Should return TRUE if the file is currently open.

Definition at line 81 of file ImageIO.h.

References FALSE.

int ImageIO::LoadFrame HBitmapNode bn,
const String filename,
int  frame = -1,
UINT  flags = 0
[inline, virtual]
 

This function is called to read a frame from a file.

Parameters:
bn  - The HBitmapNode where the frame image data should be loaded.
filename  - The filename where the frame image data is loaded from. The filename should be assumed to have been tested with CanLoadImage prior to calling LoadFrame.
frame  - Specifies the frame number to load. For file formats that can store only one frame, this parameter will be -1.
flags  - Load flags. See HBitmapNode for a list of Load Flags. They are HBitmapNode::LOADDEFAULT, HBitmapNode::LOADBKCOLOR, HBitmapNode::LOADINFOONLY, HBitmapNode::INITIALIZE, HBitmapNode::NOMODIFIEDCHECK and can be OR combined.

Definition at line 80 of file ImageIO.h.

References HBitmapNode::LOAD_FAILED.

int ImageIO::OpenWriteFrame String  filename,
HBitmapNode bn,
HOutputInfo outputinfo,
BOOL  hasaudio
[inline, virtual]
 

This function should open the file.

This would also be the appropriate place to write the file header in the case of file format that allow saving multiple frames in the same file.

Definition at line 77 of file ImageIO.h.

Referenced by Write().

BOOL ImageIO::SetSaveOptions CWnd *  parent,
const String