Class PrintOutBitmap
Implements
Inherited Members
Namespace: Reportman.Drawing
Assembly: Reportman.Drawing.Windows.dll
Syntax
public class PrintOutBitmap : PrintOutNet, IDisposable
Constructors
PrintOutBitmap()
Declaration
public PrintOutBitmap()
Methods
DrawPage(MetaFile, MetaPage)
Draws all the objects inside a page to the Bitmap Output
Declaration
public override void DrawPage(MetaFile meta, MetaPage page)
Parameters
| Type | Name | Description |
|---|---|---|
| MetaFile | meta | MetaFile containing the page |
| MetaPage | page | MetaFilePage to be drawn into Output |
Overrides
ExportToBitmap(MetaFile, bool, int, int, bool, float, float)
Declaration
public static Bitmap ExportToBitmap(MetaFile nmeta, bool allpages, int frompage, int topage, bool monoCrome, float horzRes, float vertRes)
Parameters
| Type | Name | Description |
|---|---|---|
| MetaFile | nmeta | |
| bool | allpages | |
| int | frompage | |
| int | topage | |
| bool | monoCrome | |
| float | horzRes | |
| float | vertRes |
Returns
| Type | Description |
|---|---|
| Bitmap |
GetPageSize(out int)
Obtain current page size and also an index to the PageSizeArray
Declaration
public override Point GetPageSize(out int indexqt)
Parameters
| Type | Name | Description |
|---|---|---|
| int | indexqt | Output parameter, it will be filled with the index inside the PageSizeArray |
Returns
| Type | Description |
|---|---|
| Point | Returns the size of the page in twips |
Overrides
GraphicExtent(MemoryStream, Point, int)
Calculate graphic extent using System.Drawing, the stream must be a valid bitmap
Declaration
public override Point GraphicExtent(MemoryStream astream, Point extent, int dpi)
Parameters
| Type | Name | Description |
|---|---|---|
| MemoryStream | astream | Memory stream containing a valid bitmap |
| Point | extent | Initial extent in twips of the drawing box) |
| int | dpi | Dots per inch, resolution of the bitmap |
Returns
| Type | Description |
|---|---|
| Point | Final size of the bitmap in twips |
Overrides
SetPageSize(PageSizeDetail)
Set page size
Declaration
public override Point SetPageSize(PageSizeDetail psize)
Parameters
| Type | Name | Description |
|---|---|---|
| PageSizeDetail | psize | Customized page size description |
Returns
| Type | Description |
|---|---|
| Point | Returns the size in twips of the page |