Store image in compressed format.


Without this flag set every image is stored in uncompressed format. When QUL_COMPRESSION is used image is stored with PNG compression and will be decompressed into the cache when needed. This reduces the size of the binary but adds decompression overhead.

This flag implies that QUL_COPY_TO_RAM is "OnDemand". QUL_TEXTURE_CACHE must be set to enable the texture cache.

注意: LodePNG decompression library is linked into the binary if compression is enabled for any asset.

注意: Source file properties must be set before adding files to the application using the qul_add_resource 函数。


This property was introduced in Qt Quick Ultralite 1.1.

另请参阅 Qt Quick Ultralite image caching , QUL_TEXTURE_CACHE ,和 Default Resource Properties .