Note
See the Examples section of the GetReadWriteBitmapData method for examples.
Color32 this[
int x
] { get; set; }
Default Property Item (
x As Integer
) As Color32
Get
Set
property Color32 default[int x] {
Color32 get (int x);
void set (int x, Color32 value);
}
abstract Item : Color32 with get, set
To return a Color structure you can use also the GetColor method but this member has a slightly better performance.
To set the color from a Color structure you can use also the SetColor method but this member has a slightly better performance.
The color value represents a straight (non-premultiplied) color with gamma correction γ = 2.2, regardless of the underlying KnownPixelFormat. To access the actual KnownPixelFormat-dependent raw data use the ReadRaw and WriteRaw methods.
If the color to be set is not supported by owner IReadWriteBitmapData, then it will be quantized to a supported color value.
ArgumentOutOfRangeException | x is less than zero or is greater than or equal to the Width of the parent IReadWriteBitmapData. |