45 static const FXchar fileExt[];
53 static const bool supported;
56 void setQuality(
FXint q){ quality=q; }
59 FXint getQuality()
const {
return quality; }
62 virtual bool loadPixels(FXStream& store);
65 virtual bool savePixels(FXStream& store)
const;
68 virtual ~FXJPGImage();
bool fxloadJPG(FXStream &store, FXColor *&data, FXint &width, FXint &height, FXint &quality)
Load an JPEG (Joint Photographics Experts Group) file from a stream.
char FXchar
Definition: fxdefs.h:380
unsigned int FXuint
Definition: fxdefs.h:389
#define FXAPI
Definition: fxdefs.h:122
Application Object.
Definition: FXApp.h:158
#define NULL
Definition: fxdefs.h:41
FXuint FXColor
Definition: fxdefs.h:447
Definition: FX4Splitter.h:31
int FXint
Definition: fxdefs.h:390
An Image is a rectangular array of pixels.
Definition: FXImage.h:67
JPEG Image class.
Definition: FXJPGImage.h:35
bool fxcheckJPG(FXStream &store)
Check if stream contains a JPG, return TRUE if so.
#define FXDECLARE(classname)
Macro to set up class declaration.
Definition: FXObject.h:92
bool fxsaveJPG(FXStream &store, const FXColor *data, FXint width, FXint height, FXint quality)
Save an JPEG (Joint Photographics Experts Group) file to a stream.