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

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,
	CanvasAlphaMode alpha
)

Parameters

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

Return Value

Type: CanvasBitmap
See Also