←Select platform

CreateFromWriteableBitmap Method

Summary
Creates a new instance of RasterRenderBuffer with the specified values from a Windows Runtime WriteableBitmap object.
Syntax
C#
public static RasterRenderBuffer CreateFromWriteableBitmap(  
   int pixelWidth, 
   int pixelHeight, 
   IBuffer pixelBuffer 
) 

Parameters

pixelWidth
The pixel width of the bitmap. Set this to WriteableBitmap.PixelWidth. Must be a value greater than 0.

pixelHeight
The pixel height of the bitmap. Set this to WriteableBitmap.PixelHeight. Must be a value greater than 0.

pixelBuffer
The pixels data. Set this to WriteableBitmap.PixelBuffer. Must not be null.

Return Value

The newly created RasterRenderBuffer object.

Remarks

This is a helper method that sets the values of the returned RasterRenderBuffer as follows:

Member Value
Width

pixelWidth

Height

pixelHeight

BitsPerPixel

32. This is the only value supported in this version and cannot be changed.

Order

RasterByteOrder.Bgr since BGR color data is the format used by Windows Runtime WriteableBitmap.

Internal buffer data

This method will call SetDataBuffer with pixelBuffer.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Converters Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.