##### Views

- Page
- Discussion
- View source
- History

# ImageData

Raw (decoded) image data.

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

## Constructors

love.image.newImageData | Creates a new ImageData object. |  |

## Functions

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 |
ImageData:encode | Encodes ImageData. |  |
ImageData:getDimensions | Gets the width and height of the ImageData. | 0.9.0 |
ImageData:getHeight | Gets the height of the ImageData. |  |
ImageData:getPixel | Gets the pixel at the specified position. |  |
ImageData:getString | Gets the full ImageData as a string. |  | 0.9.0
ImageData:getWidth | Gets the width of the ImageData. |  |
ImageData:mapPixel | Transform an image by applying a function to every pixel. |  |
ImageData:paste | Paste into ImageData from another source ImageData. |  |
ImageData:setPixel | Sets the color of a pixel. |  |
Object:type | Gets the type of the object as a string. |  |
Object:typeOf | Checks whether an object is of a certain type. |  |

## Enums

ImageFormat | Encoded image formats. |  |

## Supertypes

- Data
- Object

## See Also

- love.image
- Image

## Other Languages

Dansk – Deutsch – English – Español – Français – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Polski – Português – Română – Slovenský – Suomi – Svenska – Türkçe – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – ไทย – 日本語 – 正體中文 – 简体中文 – Tiếng Việt – 한국어
More info

Retrieved from "https://www.love2d.org/wiki/ImageData"
Category: Types

##### Personal tools

- Log in

##### Search

##### Toolbox

- What links here
- Related changes
- Special pages
- Printable version
- Permanent link
- Browse properties