Leadtools.Converters Namespace > RasterRenderBuffer Class : CreateFromWriteableBitmap Method |
public static RasterRenderBuffer CreateFromWriteableBitmap( int pixelWidth, int pixelHeight, IBuffer pixelBuffer )
'Declaration Public Shared Function CreateFromWriteableBitmap( _ ByVal pixelWidth As Integer, _ ByVal pixelHeight As Integer, _ ByVal pixelBuffer As IBuffer _ ) As RasterRenderBuffer
'Usage Dim pixelWidth As Integer Dim pixelHeight As Integer Dim pixelBuffer As IBuffer Dim value As RasterRenderBuffer value = RasterRenderBuffer.CreateFromWriteableBitmap(pixelWidth, pixelHeight, pixelBuffer)
public static RasterRenderBuffer CreateFromWriteableBitmap( int pixelWidth, int pixelHeight, IBuffer pixelBuffer )
function Leadtools.Converters.RasterRenderBuffer.CreateFromWriteableBitmap( pixelWidth , pixelHeight , pixelBuffer )
public: static RasterRenderBuffer^ CreateFromWriteableBitmap( int pixelWidth, int pixelHeight, IBuffer^ pixelBuffer )
This is a helper method that sets the values of the returned RasterRenderBuffer as follows:
Member | Value |
---|---|
Width | |
Height | |
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. |
For an example, refer to RasterImageRenderer.