void SetColorIndex(
int x,
int colorIndex
)Sub SetColorIndex (
x As Integer,
colorIndex As Integer
)void SetColorIndex(
int x,
int colorIndex
)abstract SetColorIndex :
x : int *
colorIndex : int -> unit This method can be used only if Indexed is set in the PixelFormat of the parent IWritableBitmapData. Otherwise, this method throws an InvalidOperationException.
To set the actual color of the pixel at the x coordinate you can use the SetColor.../SetPColor... methods or the indexer.
| ArgumentOutOfRangeException | x is less than zero or is greater than or equal to the Width of the parent IWritableBitmapData. |
| InvalidOperationException | This IWritableBitmapDataRow does not belong to a row of an indexed IWritableBitmapData. |