# CompressedData

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

Represents compressed image data designed to stay compressed in RAM. CompressedData encompasses standard compressed formats such as DXT1, DXT5, and BC5 / 3Dc.

You can't draw CompressedData directly to the screen. See Image for that.

## Constructors

love.image.newCompressedData | Create a new CompressedData object from a compressed image file. | 0.9.0 |

## Functions

CompressedData:getDimensions | Gets the width and height of the CompressedData. | 0.9.0 |
CompressedData:getFormat | Gets the format of the CompressedData. | 0.9.0 |
CompressedData:getHeight | Gets the height of the CompressedData. | 0.9.0 |
CompressedData:getMipmapCount | Gets the number of mipmap levels in the CompressedData. | 0.9.0 |
CompressedData:getWidth | Gets the width of the CompressedData. | 0.9.0 |
Data:getPointer | Gets a pointer to the Data. |  |
Data:getSize | Gets the size in bytes of the Data. |  |
Data:getString | Gets the full Data as a string. | 0.9.0 |
Object:type | Gets the type of the object as a string. |  |
Object:typeOf | Checks whether an object is of a certain type. |  |

## Enums

CompressedFormat | Compressed image data formats. | 0.9.0 |

## Supertypes

- Data
- Object

## See Also

- love.image
- love.image.isCompressed
- Image

##

Category:

- Types