Draws the page content.
Namespace: TallComponents.PDFAssembly: TallComponents.PDF.Controls.WinForms (in TallComponents.PDF.Controls.WinForms.dll) Version: 2.0.46.0
Syntax
| C# |
|---|
public void Draw( Graphics graphics, PageBoundary pageBoundary, RenderSettings renderSettings, Summary summary ) |
| Visual Basic |
|---|
Public Sub Draw ( _ graphics As Graphics, _ pageBoundary As PageBoundary, _ renderSettings As RenderSettings, _ summary As Summary _ ) |
Parameters
- graphics
- Type: System.Drawing..::..Graphics
Graphics object to which content is drawn.
- pageBoundary
- Type: TallComponents.PDF.Shapes..::..PageBoundary
The page boundary that is used to draw the PDF page. If the page boundary is not specified for this page, Default is used.
- renderSettings
- Type: TallComponents.PDF.Configuration..::..RenderSettings
Settings that control the render process.
- summary
- Type: TallComponents.PDF.Diagnostics..::..Summary
The summary to which diagnostic information is written
Examples
Page page = document.Pages[selectedPage]; const float DPI = 300; bitmap = new Bitmap( (int) ( page.Width / 72 * DPI ), (int) ( page.Height / 72 * DPI ) ); Graphics graphics = Graphics.FromImage( bitmap ); float scale = DPI / 72; graphics.ScaleTransform( scale, scale ); <b>page.Draw( graphics );</b>