LoadCompressed property (ILEADRasterIO)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

LoadCompressedConstants 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. For a list of possible values, refer to the LoadCompressedConstants enumeration.

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, read the bitmap compression value for the bitmap from the BitmapCompression property and save that to a variable. Then, uncompress the bitmap using the SetBitmapCompression method. Make any changes and then recompress the bitmap using the SetBitmapCompression method and the original compression value you stored in the variable.

See Also

Elements

FastLoad property, Load method, LoadArray method, LoadCompressed, LoadMemory method, BitmapCompression property

Topics

Raster Images: Loading Files