W3cubDocs

/LÖVE

(Image):isCompressed

Available since LÖVE 0.9.0
This function is not supported in earlier versions.

Gets whether the Image was created from CompressedData.

Compressed images take up less space in VRAM, and drawing a compressed image will generally be more efficient than drawing one created from raw pixel data.

Function

Synopsis

compressed = Image:isCompressed( )

Arguments

None.

Returns

boolean compressed
Whether the Image is stored as a compressed texture on the GPU.

See Also

© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/(Image):isCompressed