Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Core.v4.4 Assembly / Xceed.Chart.Core Namespace / ImageExport Class / RenderToHBitmap Method
width of the image
height of the image
used pixel format
The Windows HBITMAP handle to the generated image


In This Topic
    RenderToHBitmap Method
    In This Topic
    Renders the chart into a bitmap with the specified dimensions and returns a HBITMAP handle.
    Syntax
    'Declaration
     
    Public Sub RenderToHBitmap( _
       ByVal nWidth As Integer, _
       ByVal nHeight As Integer, _
       ByVal nBitsPerPixel As Integer, _
       ByRef hBitmap As Integer _
    ) 
    'Usage
     
    Dim instance As ImageExport
    Dim nWidth As Integer
    Dim nHeight As Integer
    Dim nBitsPerPixel As Integer
    Dim hBitmap As Integer
     
    instance.RenderToHBitmap(nWidth, nHeight, nBitsPerPixel, hBitmap)
    public void RenderToHBitmap( 
       int nWidth,
       int nHeight,
       int nBitsPerPixel,
       ref int hBitmap
    )

    Parameters

    nWidth
    width of the image
    nHeight
    height of the image
    nBitsPerPixel
    used pixel format
    hBitmap
    The Windows HBITMAP handle to the generated image

    Return Value

    .
    Remarks
    You must de-allocate the returned HBITMAP with Windows.DeleteObject(handle).
    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