All Bundles
PixelData
Raw pixel data for surfaces and textures
Operations
Copy
Copies raw pixel data
method : public : Copy(data:PixelData) ~ Bool
Parameters
Return
Type | Description |
---|
Bool | true if copied, false otherwise |
Get
Get pixel value for index
method : public : Get(index:Int) ~ Int
Parameters
Name | Type | Description |
---|
index | Int | index to get |
Return
Type | Description |
---|
Int | pixel value for index |
Get pixel value for x and y offset
method : public : Get(x:Int, y:Int) ~ Int
Parameters
Name | Type | Description |
---|
x | Int | x-offset |
y | Int | y-offset |
Return
Type | Description |
---|
Int | pixel value for index |
GetHeight
Gets the height
method : public : GetHeight() ~ Int
Return
Type | Description |
---|
Int | height value |
GetPitch
Gets the pitch
method : public : GetPitch() ~ Int
Return
Type | Description |
---|
Int | pitch value |
IsNull
Determines if the underlying SDL C-struct is NULL
method : public : IsNull() ~ Bool
Return
Type | Description |
---|
Bool | true if NULL, false otherwise |
Set
Set pixel value for index
method : public : Set(index:Int, value:Int) ~ Bool
Parameters
Name | Type | Description |
---|
index | Int | index to set |
value | Int | value to set |
Return
Type | Description |
---|
Bool | true if set, false otherwise |