PixelData
Raw pixel data for surfaces and textures
Operations
Copy
Copies raw pixel data
method : public : Copy(data:PixelData) ~ Bool
Parameters
Name | Type | Description |
---|---|---|
data | PixelData | data to copy |
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
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 |
IsNull
Determines if the underlying SDL C-struct is NULL
method : public : IsNull() ~ Bool
Return
Type | Description |
---|---|
Bool | true if NULL, false otherwise |