Available in the LEADTOOLS Imaging toolkit. |
LoadCompressed property (Main Control)
Visual
Basic example
Visual
C++ 4.0 example
Syntax short LoadCompressed
Overview: Refer to Loading a Bitmap from a File.
Remarks
Indicates whether an image will be loaded compressed or uncompressed, and if compressed, what compression will be used. Possible values are:
Value |
Meaning |
COMP_NONE |
[0] The bitmap will be loaded uncompressed. This is the equivalent of False in previous versions. |
COMP_RLE |
[1] The bitmap will be loaded in memory RLE compressed. This is the equivalent of True in previous versions. |
COMP_SUPER |
[2] The bitmap will be loaded in memory compressed. The compression used is LEAD CMP (for 24-bit bitmaps) or Fax G4 (for 1-bit bitmaps). |
Bitmaps loaded with COMP_SUPER will take up the least amount of memory. Most operations on the bitmap will be slower than on compressed or uncompressed bitmaps. The use of super compressed bitmaps is recommended when the bitmaps being loaded are really large and it would make the operating system to swap the bitmap data to disk (if the bitmap was uncompressed). In these situations, the manipulation of super compressed bitmaps can be faster than the manipulation of compressed or uncompressed bitmaps.
Note that the super compression for 24-bit bitmaps is lossy, which means repeated modifications of the bitmap could cause image degradation. To avoid this, uncompress the bitmap using the BitmapCompression property, make any changes and then recompress the bitmap back using the BitmapCompression property again.
See Also
Elements: Load method, LoadArray method, LoadMemory method, BitmapCompression property
Topics: Raster Images: Loading Files