Xceed Chart for WinForms v4.4 Documentation
RenderToBitmap Method (PrintManager)
Example 


Xceed.Chart.v4.4 Assembly > Xceed.Chart Namespace > PrintManager Class : RenderToBitmap Method
Returns a bitmap containing the chart image scaled according to the settings of the PrintManager.
Syntax
'Declaration
 
Public Function RenderToBitmap( _

   ByVal printDocument As PrintDocument _

) As Bitmap
'Usage
 
Dim instance As PrintManager

Dim printDocument As PrintDocument

Dim value As Bitmap

 

value = instance.RenderToBitmap(printDocument)
public Bitmap RenderToBitmap( 

   PrintDocument printDocument

)

Parameters

printDocument
Remarks
You may use this function in your applications when you want to print other information besides charts, because it releases you from the burden to scale the chart properly, apply margins and other calculations related with printing.
Example
Get a bitmap of a chart covering the whole print area
PrintDocument printDocument = new PrintDocument(); 

Bitmap chartBitmap = ChartControl.PrintManager.RenderToBitmap(printDocument);z
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

PrintManager Class
PrintManager Members