Canvas:newImageData
Available since LÖVE 0.10.0 |
It has been renamed from Canvas:getImageData. |
Generates ImageData from the contents of the Canvas.
Function
Synopsis
data = Canvas:newImageData( x, y, width, height )
Arguments
number x (0)
- The x-axis of the top-left corner of the area within the Canvas to capture.
number y (0)
- The y-axis of the top-left corner of the area within the Canvas to capture.
number width (Canvas:getWidth())
- The width of the area within the Canvas to capture.
number height (Canvas:getHeight())
- The height of the area within the Canvas to capture.
Returns
ImageData data
- The new ImageData made from the Canvas' contents.
See Also
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