Home > Language Reference > Design Time Properties

Compression Property

Specifies the compression algorithm to be used to compress images.

Remarks

The Compression property applies to images inserted into a project. It can take one of the following values:

ValueAvailable since...Description
No compressionPalm OS® 1.0The image is not compressed.
ScanLine Palm OS® 2.0The ScanLine compression algorithm is used.
RLEPalm OS® 3.5The Run Length Encoding compression algorithm is used.
PackBits Palm OS® 4.0The PackBits compression algorithm is used
Best mode Palm OS® 4.0The most efficient compression algorithm is used.

The compiler uses the minimal OS version your application is targetted for (see Compiler Options) to determine if the compression mode you selected is available on all the platforms your application can run on, and possibly emits a warning #9039 if this is not the case.

If you wish to compress images, it is probably best to select the 'best mode' option. This will ensure both smallest executable, and compatibility with all devices, as the compiler will not choose an algorithm which is not available on the OS version you specified in the project settings.

Note: the Zip property defines the compression mode for binary resources.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0-
Windows CEWindows CE 3.0-