void SetColorIndex(
int x,
int y,
int colorIndex
)Sub SetColorIndex (
x As Integer,
y As Integer,
colorIndex As Integer
)void SetColorIndex(
int x,
int y,
int colorIndex
)abstract SetColorIndex :
x : int *
y : int *
colorIndex : int -> unit This method can be used only if Indexed is set in the PixelFormat of this IWritableBitmapData. Otherwise, this method throws an InvalidOperationException.
To set the actual color of the pixel at the specified coordinates you can use the SetColor.../SetPColor... methods.
| 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. |
| InvalidOperationException | This IWritableBitmapData does not have an indexed pixel format. |