Attributes


Functions

long CxImage::GetSize ()
BYTE * CxImage::GetBits (DWORD row=0)
BYTE CxImage::GetColorType ()
void * CxImage::GetDIB () const
DWORD CxImage::GetHeight () const
DWORD CxImage::GetWidth () const
DWORD CxImage::GetEffWidth () const
DWORD CxImage::GetNumColors () const
WORD CxImage::GetBpp () const
DWORD CxImage::GetType () const
const char * CxImage::GetLastError ()
static const TCHAR * CxImage::GetVersion ()
static const float CxImage::GetVersionNumber ()
DWORD CxImage::GetFrameDelay () const
void CxImage::SetFrameDelay (DWORD d)
void CxImage::GetOffset (long *x, long *y)
void CxImage::SetOffset (long x, long y)
BYTE CxImage::GetJpegQuality () const
void CxImage::SetJpegQuality (BYTE q)
float CxImage::GetJpegQualityF () const
void CxImage::SetJpegQualityF (float q)
BYTE CxImage::GetJpegScale () const
void CxImage::SetJpegScale (BYTE q)
long CxImage::GetXDPI () const
long CxImage::GetYDPI () const
void CxImage::SetXDPI (long dpi)
void CxImage::SetYDPI (long dpi)
DWORD CxImage::GetClrImportant () const
void CxImage::SetClrImportant (DWORD ncolors=0)
long CxImage::GetProgress () const
long CxImage::GetEscape () const
void CxImage::SetProgress (long p)
void CxImage::SetEscape (long i)
long CxImage::GetTransIndex () const
RGBQUAD CxImage::GetTransColor ()
void CxImage::SetTransIndex (long idx)
void CxImage::SetTransColor (RGBQUAD rgb)
bool CxImage::IsTransparent () const
DWORD CxImage::GetCodecOption (DWORD imagetype=0)
bool CxImage::SetCodecOption (DWORD opt, DWORD imagetype=0)
DWORD CxImage::GetFlags () const
void CxImage::SetFlags (DWORD flags, bool bLockReservedFlags=true)
BYTE CxImage::GetDisposalMethod () const
void CxImage::SetDisposalMethod (BYTE dm)
bool CxImage::SetType (DWORD type)
static DWORD CxImage::GetNumTypes ()
static DWORD CxImage::GetTypeIdFromName (const TCHAR *ext)
static DWORD CxImage::GetTypeIdFromIndex (const DWORD index)
static DWORD CxImage::GetTypeIndexFromId (const DWORD id)
bool CxImage::GetRetreiveAllFrames () const
void CxImage::SetRetreiveAllFrames (bool flag)
CxImageCxImage::GetFrame (long nFrame) const
bool CxImage::IsValid () const
bool CxImage::IsEnabled () const
void CxImage::Enable (bool enable=true)
long CxImage::GetNumFrames () const
long CxImage::GetFrame () const
void CxImage::SetFrame (long nFrame)

Detailed Description


Function Documentation

void CxImage::Enable ( bool  enable = true  )  [inherited]

Enables/disables the image.

BYTE * CxImage::GetBits ( DWORD  row = 0  )  [inherited]

Returns:
pointer to the image pixels. USE CAREFULLY

WORD CxImage::GetBpp (  )  const [inherited]

Returns:
: 1, 4, 8, 24.

DWORD CxImage::GetClrImportant (  )  const [inherited]

See also:
SetClrImportant

DWORD CxImage::GetCodecOption ( DWORD  imagetype = 0  )  [inherited]

See also:
SetCodecOption

BYTE CxImage::GetColorType (  )  [inherited]

Returns:
1 = indexed, 2 = RGB, 4 = RGBA

void * CxImage::GetDIB (  )  const [inherited]

Returns:
internal hDib object..

BYTE CxImage::GetDisposalMethod (  )  const [inherited]

Gets the method for drawing the frame related to others Values : 0 - No disposal specified. The decoder is not required to take any action. 1 - Do not dispose. The graphic is to be left in place. 2 - Restore to background color. The area used by the graphic must be restored to the background color. 3 - Restore to previous. The decoder is required to restore the area overwritten by the graphic with what was there prior to rendering the graphic. 4-7 - To be defined.

DWORD CxImage::GetEffWidth (  )  const [inherited]

Returns:
DWORD aligned width of the image.

long CxImage::GetEscape (  )  const [inherited]

Returns:
the escape code.
See also:
SetEscape

DWORD CxImage::GetFlags (  )  const [inherited]

See also:
SetFlags

long CxImage::GetFrame (  )  const [inherited]

Returns:
the current selected image (zero-based index).

CxImage * CxImage::GetFrame ( long  nFrame  )  const [inherited]

DWORD CxImage::GetFrameDelay (  )  const [inherited]

Returns:
current frame delay in milliseconds. Only for GIF and MNG formats.

DWORD CxImage::GetHeight (  )  const [inherited]

BYTE CxImage::GetJpegQuality (  )  const [inherited]

See also:
SetJpegQuality, GetJpegQualityF
Author:
[DP]; changes [Stefan Schürmans]

float CxImage::GetJpegQualityF (  )  const [inherited]

See also:
SetJpegQuality, GetJpegQuality
Author:
[Stefan Schürmans]

BYTE CxImage::GetJpegScale (  )  const [inherited]

See also:
SetJpegScale

const char * CxImage::GetLastError (  )  [inherited]

Returns the last reported error.

DWORD CxImage::GetNumColors (  )  const [inherited]

Returns:
2, 16, 256; 0 for RGB images.

long CxImage::GetNumFrames (  )  const [inherited]

This function must be used after a Decode() / Load() call. Use the sequence SetFrame(-1); Load(...); GetNumFrames(); to get the number of images without loading the first image.

Returns:
the number of images in the file.

DWORD CxImage::GetNumTypes (  )  [static, inherited]

void CxImage::GetOffset ( long *  x,
long *  y 
) [inherited]

long CxImage::GetProgress (  )  const [inherited]

Used to monitor the slow loops.

Returns:
value is from 0 to 100.
See also:
SetProgress

bool CxImage::GetRetreiveAllFrames (  )  const [inherited]

long CxImage::GetSize (  )  [inherited]

Returns:
the size in bytes of the internal pDib object

RGBQUAD CxImage::GetTransColor (  )  [inherited]

Returns:
the color used for transparency, and/or for background color

long CxImage::GetTransIndex (  )  const [inherited]

Gets the index used for transparency. Returns -1 for no transparancy.

DWORD CxImage::GetType (  )  const [inherited]

Returns:
original image format
See also:
ENUM_CXIMAGE_FORMATS.

DWORD CxImage::GetTypeIdFromIndex ( const DWORD  index  )  [static, inherited]

DWORD CxImage::GetTypeIdFromName ( const TCHAR *  ext  )  [static, inherited]

DWORD CxImage::GetTypeIndexFromId ( const DWORD  id  )  [static, inherited]

const TCHAR * CxImage::GetVersion (  )  [static, inherited]

const float CxImage::GetVersionNumber (  )  [static, inherited]

Returns:
A.BBCCCDDDD
  • A = main version
  • BB = main revision
  • CCC = minor revision (letter)
  • DDDD = experimental revision

DWORD CxImage::GetWidth (  )  const [inherited]

long CxImage::GetXDPI (  )  const [inherited]

Returns:
Resolution for TIFF, JPEG, PNG and BMP formats.

long CxImage::GetYDPI (  )  const [inherited]

Returns:
Resolution for TIFF, JPEG, PNG and BMP formats.

bool CxImage::IsEnabled (  )  const [inherited]

True if the image is enabled for painting.

bool CxImage::IsTransparent (  )  const [inherited]

bool CxImage::IsValid (  )  const [inherited]

Checks if the image is correctly initializated.

void CxImage::SetClrImportant ( DWORD  ncolors = 0  )  [inherited]

sets the maximum number of colors that some functions like DecreaseBpp() or GetNearestIndex() will use on indexed images

Parameters:
ncolors should be less than 2^bpp, or 0 if all the colors are important.

bool CxImage::SetCodecOption ( DWORD  opt,
DWORD  imagetype = 0 
) [inherited]

Encode option for GIF, TIF and JPG.

Returns:
true if everything is ok

void CxImage::SetDisposalMethod ( BYTE  dm  )  [inherited]

Sets the method for drawing the frame related to others

See also:
GetDisposalMethod

void CxImage::SetEscape ( long  i  )  [inherited]

Used to quit the slow loops or the codecs.

void CxImage::SetFlags ( DWORD  flags,
bool  bLockReservedFlags = true 
) [inherited]

Image flags, for future use

Parameters:
flags 
  • 0x??00000 = reserved for 16 bit, CMYK, multilayer
  • 0x00??0000 = blend modes
  • 0x0000???? = layer id or user flags
bLockReservedFlags protects the "reserved" and "blend modes" flags

void CxImage::SetFrame ( long  nFrame  )  [inherited]

Sets the image number that the next Decode() / Load() call will load

void CxImage::SetFrameDelay ( DWORD  d  )  [inherited]

Sets current frame delay. Only for GIF format.

Parameters:
d = delay in milliseconds

void CxImage::SetJpegQuality ( BYTE  q  )  [inherited]

quality level for JPEG and JPEG2000

Parameters:
q,: can be from 0 to 100
Author:
[DP]; changes [Stefan Schürmans]

void CxImage::SetJpegQualityF ( float  q  )  [inherited]

quality level for JPEG and JPEG2000 necessary for JPEG2000 when quality is between 0.0 and 1.0

Parameters:
q,: can be from 0.0 to 100.0
Author:
[Stefan Schürmans]

void CxImage::SetJpegScale ( BYTE  q  )  [inherited]

scaling down during JPEG decoding valid numbers are 1, 2, 4, 8

Author:
[ignacio]

void CxImage::SetOffset ( long  x,
long  y 
) [inherited]

void CxImage::SetProgress ( long  p  )  [inherited]

Forces the value of the internal progress variable.

Parameters:
p should be from 0 to 100.
See also:
GetProgress

void CxImage::SetRetreiveAllFrames ( bool  flag  )  [inherited]

void CxImage::SetTransColor ( RGBQUAD  rgb  )  [inherited]

Sets the color used for transparency with 24 bpp images. You must call SetTransIndex(0) to enable the effect, SetTransIndex(-1) to disable it.

void CxImage::SetTransIndex ( long  idx  )  [inherited]

Sets the index used for transparency with 1, 4 and 8 bpp images. Set to -1 to remove the effect.

bool CxImage::SetType ( DWORD  type  )  [inherited]

change image format identifier

See also:
ENUM_CXIMAGE_FORMATS.

void CxImage::SetXDPI ( long  dpi  )  [inherited]

Set resolution for TIFF, JPEG, PNG and BMP formats.

void CxImage::SetYDPI ( long  dpi  )  [inherited]

Set resolution for TIFF, JPEG, PNG and BMP formats.


Generated on Thu Jan 31 20:11:32 2008 for CxImage by  doxygen 1.5.4