Graphics
(NOTE) Modifiable texture data that can be used to upload to a runtime Texture resource. All formats use one interface for get/set, all values are converted to/from floats and unused channels are ignored. Integer formats are represented in the normalized range [0, 1].
Methods | Properties | Base Classes | Derived Classes |
---|---|---|---|
Get | Format | ||
Set | Height | ||
Constructor | PixelCount | ||
Width |
Properties
Format : TextureFormat
read-only
Memory format of the stored pixel data.
var Format : TextureFormat
Height : integer
read-only
Height of the texture data in pixels.
var Height : Integer
PixelCount : integer
read-only
Total number of pixels in texture data.
var PixelCount : Integer
Width : integer
read-only
Width of the texture data in pixels.
var Width : Integer
Methods
Get : real4
Returns the pixel values at the given index. |Name|Type|Description| |---|---|---| |index|integer| |
function Get(index : Integer) : Real4
Get : real4
Returns the pixel values at the given index. |Name|Type|Description| |---|---|---| |x|integer| | |y|integer| |
function Get(x : Integer, y : Integer) : Real4
Set : Void
Sets the pixel values at the given index. |Name|Type|Description| |---|---|---| |x|integer| | |y|integer| | |value|real4| |
function Set(x : Integer, y : Integer, value : Real4)
Set : Void
Sets the pixel values at the given index. |Name|Type|Description| |---|---|---| |index|integer| | |value|real4| |
function Set(index : Integer, value : Real4)
TextureData : Void
constructor
Name Type Description format TextureFormat width integer height integer function TextureData(format : TextureFormat, width : Integer, height : Integer)