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

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,
	float dpi
)

Parameters

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

Return Value

Type: CanvasBitmap
See Also