GetPixelDataOfCanvas

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
the pixel data of <Canvas>
Associationscom.livecode.canvas
Summary

Get the current contents of a canvas as raw pixel data

Parameters
NameTypeDescription
Canvas

The canvas to be examined.

Values
NameTypeDescription
return

The raw pixel values as binary data.

Description

Capture the current contents of the Canvas as raw pixel data in RGBA format with 8 bits per colour component, i.e. 32 bits or 4 bytes per pixel.

Tagscanvas