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:
| Value | Available since... | Description |
| No compression | Palm OS® 1.0 | The image is not compressed. |
| ScanLine | Palm OS® 2.0 | The ScanLine compression algorithm is used. |
| RLE | Palm OS® 3.5 | The Run Length Encoding compression algorithm is used. |
| PackBits | Palm OS® 4.0 | The PackBits compression algorithm is used |
| Best mode | Palm OS® 4.0 | The 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
| System | Minimal version | Remarks |
| Palm OS | Palm OS 3.0 | - |
| Windows CE | Windows CE 3.0 | - |