Click or drag to resize
CanvasBitmapGetPixelColors Method
Returns an array of color data for the entire bitmap.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public Color[] GetPixelColors()

Return Value

Type: Color
Remarks
  • The Format must be DirectXPixelFormat.B8G8R8A8UintNormalized.
  • The size of the returned array is SizeInPixels.Width * SizeInPixels.Height.
See Also