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

FX::FXJPGIcon Class Reference

JPEG Icon class. More...

#include <FXJPGIcon.h>

Inheritance diagram for FX::FXJPGIcon:

FX::FXIcon FX::FXImage FX::FXDrawable FX::FXId FX::FXObject List of all members.

Public Member Functions

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

Static Public Attributes

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

Detailed Description

JPEG Icon class.

Constructor & Destructor Documentation

const void *  pix = NULL,
FXColor  clr = FXRGB(192, 192, 192),
FXuint  opts = 0,
FXint  w = 1,
FXint  h = 1,
FXint  q = 75

Construct an icon from memory stream formatted in JPEG format.

virtual FX::FXJPGIcon::~FXJPGIcon  )  [virtual]


Member Function Documentation

void FX::FXJPGIcon::setQuality FXint  q  )  [inline]

Set image quality to save with.

FXint FX::FXJPGIcon::getQuality  )  const [inline]

Get image quality setting.

virtual bool FX::FXJPGIcon::savePixels FXStream store  )  const [virtual]

Save pixels into stream in JPEG format.

Reimplemented from FX::FXImage.

virtual bool FX::FXJPGIcon::loadPixels FXStream store  )  [virtual]

Load pixels from stream in JPEG format.

Reimplemented from FX::FXImage.

Member Data Documentation

const FXchar FX::FXJPGIcon::fileExt[] [static]

const FXchar FX::FXJPGIcon::mimeType[] [static]

const bool FX::FXJPGIcon::supported [static]

True if format is supported.

Copyright © 1997-2005 Jeroen van der Zijp