class
PixelDataEx
Public
Methods
staticCreate
staticCreate
static SPtr<PixelData> Create(u32 width, u32 height, u32 depth = 1, PixelFormat pixelFormat = PF_BGRA8)
staticGetPixel
Returns a pixel at the specified location in the buffer.
- x
- X coordinate of the pixel.
- y
- Y coordinate of the pixel.
- z
- Z coordinate of the pixel.
Returns: Value of the pixel, or undefined value if coordinates are out of range.
staticSetPixel
Sets a pixel at the specified location in the buffer.
- value
- Color of the pixel to set.
- x
- X coordinate of the pixel.
- y
- Y coordinate of the pixel.
- z
- Z coordinate of the pixel.
staticGetPixels
Returns values of all pixels.
Returns: All pixels in the buffer ordered consecutively. Pixels are stored as a succession of "depth" slices, each containing "height" rows of "width" pixels.
staticSetPixels
Sets all pixels in the buffer.Caller must ensure that number of pixels match the extends of the buffer.
- value
- All pixels in the buffer ordered consecutively. Pixels are stored as a succession of "depth" slices, each containing "height" rows of "width" pixels.
staticGetRawPixels
Returns all pixels in the buffer as raw bytes.
Returns: Raw pixel bytes. It is up to the caller to interpret the pixel format and account for potential row and slice pitch values.
staticSetRawPixels
Sets all pixels in the buffer as raw bytes.
- value
- Raw pixel bytes. It is up to the caller to interpret the pixel format and account for potential row and slice pitch values.