All Bundles

PixelData

Raw pixel data for surfaces and textures

Operations

Copy

Copies raw pixel data

method : public : Copy(data:PixelData) ~ Bool
Parameters
NameTypeDescription
dataPixelDatadata to copy

Return
TypeDescription
Booltrue if copied, false otherwise

Get

Get pixel value for index

method : public : Get(index:Int) ~ Int
Parameters
NameTypeDescription
indexIntindex to get

Return
TypeDescription
Intpixel value for index

Get pixel value for x and y offset

method : public : Get(x:Int, y:Int) ~ Int
Parameters
NameTypeDescription
xIntx-offset
yInty-offset

Return
TypeDescription
Intpixel value for index

GetHeight

Gets the height

method : public : GetHeight() ~ Int
Return
TypeDescription
Intheight value

GetPitch

Gets the pitch

method : public : GetPitch() ~ Int
Return
TypeDescription
Intpitch value

IsNull

Determines if the underlying SDL C-struct is NULL

method : public : IsNull() ~ Bool
Return
TypeDescription
Booltrue if NULL, false otherwise

Set

Set pixel value for index

method : public : Set(index:Int, value:Int) ~ Bool
Parameters
NameTypeDescription
indexIntindex to set
valueIntvalue to set

Return
TypeDescription
Booltrue if set, false otherwise