×

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: 1.2.151.0 (1.2.151.0)

Syntax

C#
public static IReadableBitmap AsBitmap(
	this WriteableBitmap writeableBitmap,
	Rect cropArea = null
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function AsBitmap ( 
	writeableBitmap As WriteableBitmap,
	Optional cropArea As Rect = Nothing
) As IReadableBitmap
Visual C++
public:
[ExtensionAttribute]
static IReadableBitmap^ AsBitmap(
	WriteableBitmap^ writeableBitmap, 
	Rect cropArea = nullptr
)
Parameters
writeableBitmap
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

×