Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXJPGImage Class Reference

#include <FXJPGImage.h>

Inheritance diagram for FX::FXJPGImage:
FX::FXImage FX::FXDrawable FX::FXId FX::FXObject

List of all members.

Public Member Functions

 FXJPGImage (FXApp *a, const void *pix=NULL, FXuint opts=0, FXint w=1, FXint h=1, FXint q=75)
void setQuality (FXint q)
FXint getQuality () const
virtual bool loadPixels (FXStream &store)
virtual bool savePixels (FXStream &store) const
virtual ~FXJPGImage ()

Static Public Attributes

static const FXchar fileExt []
static const FXchar mimeType []
static const bool supported

Detailed Description

JPEG Image class.


Constructor & Destructor Documentation

FX::FXJPGImage::FXJPGImage ( FXApp a,
const void *  pix = NULL,
FXuint  opts = 0,
FXint  w = 1,
FXint  h = 1,
FXint  q = 75 
)

Construct an image from memory stream formatted in JPEG format.

virtual FX::FXJPGImage::~FXJPGImage ( ) [virtual]

Destroy.


Member Function Documentation

void FX::FXJPGImage::setQuality ( FXint  q) [inline]

Set image quality to save with.

FXint FX::FXJPGImage::getQuality ( ) const [inline]

Get image quality setting.

virtual bool FX::FXJPGImage::loadPixels ( FXStream store) [virtual]

Save pixels into stream in JPEG format.

Reimplemented from FX::FXImage.

virtual bool FX::FXJPGImage::savePixels ( FXStream store) const [virtual]

Load pixels from stream in JPEG format.

Reimplemented from FX::FXImage.


Member Data Documentation

const FXchar FX::FXJPGImage::fileExt[] [static]
const FXchar FX::FXJPGImage::mimeType[] [static]
const bool FX::FXJPGImage::supported [static]

True if format is supported.

Copyright © 1997-2005 Jeroen van der Zijp