Note
See the Examples section of the GetReadWriteBitmapData method for an example.
void SetPColor32(
int x,
int y,
PColor32 color
)Sub SetPColor32 (
x As Integer,
y As Integer,
color As PColor32
)void SetPColor32(
int x,
int y,
PColor32 color
)abstract SetPColor32 :
x : int *
y : int *
color : PColor32 -> unit The color parameter represents a premultiplied color with 8 bits per channel in the sRGB color space, regardless of the underlying PixelFormat.
Line by line processing is also possible by obtaining the first row by the FirstRow property, setting the pixels by the IWritableBitmapDataRowMovable members and then moving to the next line by the MoveNextRow method.
To access the actual PixelFormat-dependent raw value obtain a row and use the WriteRaw method.
If the color to be set cannot be represented precisely by the owner IWritableBitmapData, then it will be quantized to a supported color value.
| ObjectDisposedException | This IWritableBitmapData has already been disposed. |
| ArgumentOutOfRangeException | x is less than zero or is greater than or equal to Width.
-or- y is less than zero or is greater than or equal to Height. |