AsBitmap Method

Creates an IReadableBitmap wrapping the pixel data of a WriteableBitmap, without copying it.

Namespace: Nokia.InteropServices.WindowsRuntimeAssembly: Nokia.Graphics.Imaging.Managed (in Nokia.Graphics.Imaging.Managed.dll) Version: (


public static IReadableBitmap AsBitmap(
	this WriteableBitmap writeableBitmap,
	Rect cropArea = null
Visual Basic
Public Shared Function AsBitmap ( 
	writeableBitmap As WriteableBitmap,
	Optional cropArea As Rect = Nothing
) As IReadableBitmap
Visual C++
static IReadableBitmap^ AsBitmap(
	WriteableBitmap^ writeableBitmap, 
	Rect cropArea = nullptr
Type: System.Windows.Media.Imaging..::..WriteableBitmapThe WriteableBitmap.
cropArea (Optional)
Type: Windows.Foundation..::..RectThe area of the WriteableBitmap to wrap as a Bitmap. By default the entire WriteableBitmap is used.
Return ValueType: Return ValueType: Nokia.Graphics.Imaging..::..IReadableBitmapUsage NoteIn Visual Basic and C#, you can call this method as an instance method on any object of type WriteableBitmap. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Last updated 19 June 2014

Back to top