Click or drag to resize
CanvasBitmapCreateFromBytes Method (ICanvasResourceCreator, IBuffer, Int32, Int32, DirectXPixelFormat)
Creates a CanvasBitmap from the bytes of the specified buffer, 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 CreateFromBytes(
	ICanvasResourceCreator resourceCreator,
	IBuffer buffer,
	int widthInPixels,
	int heightInPixels,
	DirectXPixelFormat format
)

Parameters

resourceCreator
Type: Microsoft.Graphics.CanvasICanvasResourceCreator
buffer
Type: Windows.Storage.StreamsIBuffer
widthInPixels
Type: SystemInt32
heightInPixels
Type: SystemInt32
format
Type: Windows.Graphics.DirectXDirectXPixelFormat

Return Value

Type: CanvasBitmap
Remarks
See Also