JVCL Help:TJvGIFImage

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Class Hierarchy

TJvGIFImage
run\JvGIF.pas


Summary

Write here a summary (1 line)

run\JvGIF.pas


Pascal

 run\JvGIF.pas
 TJvGIFImage = class(TGraphic);


Description

TGIFImage supports reading and writing GIF compressed image data. The GIFImage object uses the data from an instance of a TGIFData object, which contains that actual GIF data source and is never modified. Each GIF image object may share this data source object with other instances of a GIF image that are copies of it, created by using the Assign method. The GIF data source does referencing counting for the GIF image objects that are linked to it.
The properties of TGIFImage indicate the size and characteristics of the GIF image.
TGIFImage supports up to 256-colors GIF images versions 87a and 89a (you can determine version of loaded image by Version property), and supports graphic control extensions (multiple images, transparency) and comment extensions of GIF format. Plain text extensions are not supported.
Single image from GIF animation sequence can be accessible by the Frames property.
TGIFImage has an internal bitmaps for each frame that contains the GIF image. These internal images and the original data source of a GIF image are read only.
A TGIFImage object:

  • Has no canvas (and thus it cannot draw onto a canvas). A TGIFImage object does implement the protected Draw method introduced in TGraphic. This means that it can draw itself. When TGIFImage contains multiple frames (animated GIF) the Draw method will be draw frame specified by FrameIndex property.
  • Provides no access to the internal bitmap image that it creates for the GIF image.
  • TGIFImage and TGIFFrame can be assign to TBitmap object and you can assign TBitmap object to theTGIFImage or TGIFFrame. So you can create TGIFImage, assign bitmap to it and then store image as GIF file by using SaveToFile method.

run\JvGIF.pas


About

Navigation

run\JvGIF.pas



Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page