Click or drag to resize
CanvasBitmapCreateFromColors Method (ICanvasResourceCreator, Color, Int32, Int32)
Creates a CanvasBitmap from an array of colors, using the specified pixel width/height, premultiplied alpha and default (96) DPI.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public static CanvasBitmap CreateFromColors(
	ICanvasResourceCreator resourceCreator,
	Color[] colors,
	int widthInPixels,
	int heightInPixels
)

Parameters

resourceCreator
Type: Microsoft.Graphics.CanvasICanvasResourceCreator
colors
Type: Windows.UIColor
widthInPixels
Type: SystemInt32
heightInPixels
Type: SystemInt32

Return Value

Type: CanvasBitmap
See Also