41 PNG_COMPRESS_FAST = 8,
42 PNG_COMPRESS_BEST = 16,
44 PNG_IMAGE_OPAQUE = 64,
45 PNG_IMAGE_ANALYZE = 128,
62 static const FXchar fileExt[];
63 static const FXchar mimeType[];
67 FXPNGImage(
FXApp *a,
const FXuchar *pix=
nullptr,FXuint opts=0,FXint w=1,FXint h=1,FXuint fl=PNG_IMAGE_ANALYZE);
79 virtual FXbool savePixels(
FXStream& store)
const;
82 virtual FXbool loadPixels(
FXStream& store);
93 extern FXAPI FXbool fxcheckPNG(FXStream& store);
101 extern FXAPI FXbool fxloadPNG(FXStream& store,FXColor*& data,FXint& width,FXint& height);
107 extern FXAPI FXbool fxsavePNG(FXStream& store,
const FXColor* data,FXint width,FXint height,FXuint flags=PNG_IMAGE_ANALYZE);
static const FXbool supported
True if format is supported.
Definition: FXPNGImage.h:70
void setFlags(FXint opts)
Set image save flags.
Definition: FXPNGImage.h:73
FXint getFlags() const
Get image save flags.
Definition: FXPNGImage.h:76
The Application object is the central point of a FOX user-interface.
Definition: FXApp.h:134
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
Definition: FX4Splitter.h:28
An Image is a rectangular array of pixels.
Definition: FXImage.h:67
Portable Network Graphics (PNG) Image class.
Definition: FXPNGImage.h:52