LEADTOOLS WPF and Silverlight (Leadtools.Converters assembly)
LEAD Technologies, Inc

CreateFromHtmlImageData Method






The pixel width of the image data. Set this to ImageData.width. Must be a value greater than 0.
The pixel height of the image data. Set this to ImageData.height. Must be a value greater than 0.
The pixels data. Set this to ImageData.data. Must not be null.
Creates a new instance of RasterRenderBuffer with the specified values from a HTML 5 Canvas ImageData object. .NET support WinRT support
Syntax
public static RasterRenderBuffer CreateFromHtmlImageData( 
   int imageDataWidth,
   int imageDataHeight,
   byte[] imageData
)
'Declaration
 
Public Shared Function CreateFromHtmlImageData( _
   ByVal imageDataWidth As Integer, _
   ByVal imageDataHeight As Integer, _
   ByVal imageData() As Byte _
) As RasterRenderBuffer
'Usage
 
Dim imageDataWidth As Integer
Dim imageDataHeight As Integer
Dim imageData() As Byte
Dim value As RasterRenderBuffer
 
value = RasterRenderBuffer.CreateFromHtmlImageData(imageDataWidth, imageDataHeight, imageData)
public static RasterRenderBuffer CreateFromHtmlImageData( 
   int imageDataWidth,
   int imageDataHeight,
   byte[] imageData
)
 function Leadtools.Converters.RasterRenderBuffer.CreateFromHtmlImageData( 
   imageDataWidth ,
   imageDataHeight ,
   imageData 
)
public:
static RasterRenderBuffer^ CreateFromHtmlImageData( 
   int imageDataWidth,
   int imageDataHeight,
   array<byte>^ imageData
) 

Parameters

imageDataWidth
The pixel width of the image data. Set this to ImageData.width. Must be a value greater than 0.
imageDataHeight
The pixel height of the image data. Set this to ImageData.height. Must be a value greater than 0.
imageData
The pixels data. Set this to ImageData.data. 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

imageDataWidth

Height

imageDataHeight

BitsPerPixel

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

Order

RasterByteOrder.Rgb since RGB color data is the format used by HTML Canvas ImageData.

Internal buffer data

This method will call SetDataArray with imageData.

Example

For an example, refer to RasterImageRenderer.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterRenderBuffer Class
RasterRenderBuffer Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.