ICanvas.HandleDC
ICanvas

property HandleDC: OleVariant;

Type Library
TeeChartx

Description
Read only

Returns the DC Handle of the TChart Canvas allowing images to be sent directly to the Canvas. Not currently supported with OpenGL rendering.

Example [Visual Basic]:

Private Sub Form_Load()

'Add an Imagelist to the Form

'Found in Microsoft Common Controls

Dim X As ListImage

'Load one image into the ImageList.

'eg. .bmp or .jpg

Set X = ImageList1.ListImages. _

Add(, , LoadPicture("c:\images\myimage.bmp"))

End Sub

Private Sub TChart1_OnBeforeDraw()

ScaleMode = vbPoints ' Set ScaleMode to points.

ImageList1.ListImages(1).Draw TChart1.Canvas.HandleDC, 40, 40, imlNormal

End Sub