Class PNGCanvasFactory
Factory for creating PngCanvas
instances
Inheritance
System.Object
PNGCanvasFactory
Implements
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 PNGCanvasFactory : ICanvasFactory
Methods
| Improve this Doc View SourceRegister()
Register a canvas factory for PNG files for use with QRBill.
Call this method once at program start to enable the generation of PNG files using the System.Drawing / GDI+ classes on Windows.
Declaration
public void Register()
Explicit Interface Implementations
| Improve this Doc View SourceICanvasFactory.CanCreate(BillFormat)
Indicates if this factory can create a canvas for the specified bill format.
Factories must register themselves with the global CanvasCreator
instance.
Declaration
bool ICanvasFactory.CanCreate(BillFormat format)
Parameters
Type | Name | Description |
---|---|---|
BillFormat | format | bill format |
Returns
Type | Description |
---|---|
System.Boolean |
|
ICanvasFactory.Create(BillFormat, Double, Double)
Creates a canvas for the specified bill format.
Declaration
ICanvas ICanvasFactory.Create(BillFormat format, double width, double height)
Parameters
Type | Name | Description |
---|---|---|
BillFormat | format | bill format |
System.Double | width | canvas width, in mm |
System.Double | height | canvas height, in mm |
Returns
Type | Description |
---|---|
ICanvas | new |