SECGif Class

class SECGif: public SECImage

SECGif is a SECImage derived class which supports the GIF (Graphics Interchange format) file standard.

Defined in: SECGIF.H

Comments

GIF images are very popular for use on the Internet and other areas.

SECGif provides support for GIF87 as well as GIF89 formats.

It should be noted that all GIF images use the LZW compression scheme which Unisys owns a patent on. If you plan on using GIF images in your applications, you will need to contact sales@stingray.com to obtain item number 1024, the GIF/TIFF LZW Unisys unlock pack for a nominal fee.

The LZW compression algorithm is a patent owned by Unisys. Since Objective Toolkit exposes the algorithm as part of the image classes, we are required to charge a small additional fee to cover the cost of the patent. Since we provide Objective Toolkit in source code format, we expose the LZW compression scheme and users who wish to simply read GIF images are still required to pay the additional fee to unlock the SECGif image libraries.

See the IMAGETST sample in the \SAMPLES\TOOLKIT\STANDARD\IMAGES\IMAGETST directory for a demonstration of this class.

See Also

SECImage

Class Members

Construction

SECGif()

Constructs a SECGif object.

SECGif(LPCTSTR lpszFileName)

Constructs a SECGif object.

Attributes

void  SetTransparent(BOOL bArg)

Sets the transparent state of the GIF image.

BOOL  GetTransparent()

Returns the transparent state of the GIF image.

void  SetTransparentColors(BYTE cRed, BYTE cGreen, BYTE cBlue)

Sets the transparent color for the GIF image.

COLORREF  GetTransparentColor()

Returns the transparent color for the GIF image.

void  SetInterlace(BOOL bArg)

Sets the interlaced state of the GIF image.

BOOL  GetInterlaced()

Returns the interlaced state of the GIF image.

BOOL  m_bInterlaced

Interlaced flag.

BOOL  m_bUseTransparent

Transparency flag.

BYTE  m_cTransRed

Red transparency color.

BYTE  m_cTransGreen

Green transparency color.

BYTE  m_cTransBlue

Blue transparency color.