Class BitmapCanvas
Canvas for generating a GDI+ bitmap.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Codecrete.SwissQRBill.Windows
Assembly: Codecrete.SwissQRBill.Windows.dll
Syntax
public class BitmapCanvas : SystemDrawingCanvas, ICanvas, IDisposable
Constructors
| Improve this Doc View SourceBitmapCanvas(Int32, Int32, Single, String)
Creates a new canvas.
Declaration
public BitmapCanvas(int width, int height, float dpi, string fontFamilyList)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | width | Width of resulting bitmap, in pixels |
System.Int32 | height | Height of resulting bitmap, in pixels |
System.Single | dpi | Resolution of bitmap, in dpi (pixels per inch) |
System.String | fontFamilyList | A list font family names, separated by comma (same syntax as for CSS). The first font family will be used. |
Methods
| Improve this Doc View SourceDispose(Boolean)
Frees and releases resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | indicates whether the method is called from a |
Overrides
| Improve this Doc View SourceToBitmap()
Returns the result as a GDI+ bitmap.
The caller must take ownership of the bitmap and dispose it.
This method can only be called once. Thereafter, it is no longer possible to draw to this canvas or to call this method a second time.
Declaration
public Bitmap ToBitmap()
Returns
Type | Description |
---|---|
System.Drawing.Bitmap | The bitmap. |
Implements
System.IDisposable