void SetColor(
int x,
Color color
)
Sub SetColor (
x As Integer,
color As Color
)
void SetColor(
int x,
Color color
)
abstract SetColor :
x : int *
color : Color -> unit
The color parameter represents a non-premultiplied color with 8 bits per channel in the sRGB color space, regardless of the underlying PixelFormat. The indexer and the SetColor32 method work with the same range of colors and have a slightly better performance than this method.
To access the actual PixelFormat-dependent raw value 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.
ArgumentOutOfRangeException | x is less than zero or is greater than or equal to the Width of the parent IWritableBitmapData. |