Click or drag to resize
CanvasBitmapSetPixelColors Method (Color, Int32, Int32, Int32, Int32)
Sets the color data for a subregion of the bitmap from the specified array.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public void SetPixelColors(
	Color[] valueElements,
	int left,
	int top,
	int width,
	int height
)

Parameters

valueElements
Type: Windows.UIColor
left
Type: SystemInt32
top
Type: SystemInt32
width
Type: SystemInt32
height
Type: SystemInt32
Remarks
  • The Format must be DirectXPixelFormat.B8G8R8A8UintNormalized.
  • left, top, width and height are specified in pixels (not DIPs).
  • The size of the array must be at least width * height.
See Also