52 static AGfxFile *
Open(
const char *pszPath,
int *pnError,
bool bRead);
117 if (
mFile !=
nullptr) {
AGfxFileResult
Results the AGfxFile members return.
Definition agfxfile.h:10
@ kAGfxFileUnsupported
Definition agfxfile.h:14
@ kAGfxFileOpenFailed
Definition agfxfile.h:13
@ kAGfxFileBadFormat
Definition agfxfile.h:15
@ kAGfxFileNoMemory
Definition agfxfile.h:12
@ kAGfxFileOk
Definition agfxfile.h:11
int GrabExt(const char *pszPath)
Return the first three characters after the last full stop of a path, packed into a word.
Description of a pixel rectangle, its layout, and its palette.
Definition abitmap.h:95
virtual int StartRead()=0
Read the file header.
virtual ~AGfxFile()
Close the file.
Definition agfxfile.h:116
virtual int Write(const ABitmap &bitmap)=0
Write a bitmap to the file.
virtual void SetUnreadWord(int nWord)
Set mUnreadWord.
Definition agfxfile.h:94
static AGfxFile * Open(const char *pszPath, int *pnError, bool bRead)
Open an image file and construct the reader for its extension.
AGfxFile(FILE *pFile)
Construct over an open file.
Definition agfxfile.h:74
ARect mBounds
Definition agfxfile.h:137
virtual int ReadFrame(ABitmap &image, int *pbEnd)=0
Read the next image in the file.
FILE * mFile
Definition agfxfile.h:131
static int Write(const char *pszPath, const ABitmap &bitmap)
Write a bitmap to a file in the format its extension selects.
int mDuration
Definition agfxfile.h:138
Half open rectangle of pixel coordinates.
Definition arect.h:25