Leadtools.Converters Namespace > RasterRenderBuffer Class : CreateFromHtmlImageData Method |
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 )
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.Rgb since RGB color data is the format used by HTML Canvas ImageData. |
Internal buffer data |
This method will call SetDataArray with imageData. |
For an example, refer to RasterImageRenderer.