LuciadCPillar C# 2023.1.04
|
An image with a width, height and pixel data in a specified pixel format. More...
Public Member Functions | |
void | Dispose () |
System.Drawing.Color | GetColor (uint x, uint y) |
Returns the color value at the given image location. More... | |
Static Public Member Functions | |
static Luciad.Drawing.Image | Create (uint width, uint height, bool isAlphaPreMultiplied, Luciad.Drawing.PixelFormat pixelFormat, Luciad.Containers.ByteBuffer data) |
Creates an Image. More... | |
Properties | |
Luciad.Containers.ByteBuffer | Bytes [get] |
uint | Height [get] |
bool | IsAlphaPreMultiplied [get] |
Luciad.Drawing.PixelFormat | PixelFormat [get] |
uint | Width [get] |
An image with a width, height and pixel data in a specified pixel format.
The origin of an image (pixel (0, 0)) is defined at the top left corner, with the x axis pointing right, and the y axis pointing down.
|
inlinestatic |
Creates an Image.
width
the width of the new image
height
the height of the new image
isAlphaPreMultiplied
true to indicate that the colors in the data buffer contain premultiplied alpha
pixelFormat
the pixel format
data
the pixel data. The buffer contains rows (left to right) of color data. The rows are ordered from top to bottom. The size of each color, and so also the size of the data buffer, is determined by the used PixelFormat.
a new image
|
inline |
|
inline |
Returns the color value at the given image location.
This will be an rgba color for Image instance with: PixelFormat::Rgba8888 PixelFormat::Rgba888
This will be a greyscale Color for Image instance with: PixelFormat::Float32 PixelFormat::UnsignedShort
x
the x-coordinate of the pixel. A value of 0 corresponds with a left-most pixel.
y
the y-coordinate of the pixel. A value of 0 corresponds with a top-most pixel.
the Color value at the given image location.
|
get |
|
get |
|
get |
|
get |
|
get |