Show / Hide Table of Contents

Interface ICanvasFactory

Factory for creating ICanvas instances

Namespace: Codecrete.SwissQRBill.Generator.Canvas
Assembly: Codecrete.SwissQRBill.Core.dll
Syntax
public interface ICanvasFactory

Methods

| Edit this page View Source

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 CanCreate(BillFormat format)
Parameters
Type Name Description
BillFormat format

bill format

Returns
Type Description
bool

true if it is able to create, false otherwise

| Edit this page View Source

Create(BillFormat, double, double)

Creates a canvas for the specified bill format.

Declaration
ICanvas Create(BillFormat format, double width, double height)
Parameters
Type Name Description
BillFormat format

bill format

double width

canvas width, in mm

double height

canvas height, in mm

Returns
Type Description
ICanvas

new ICanvas instance

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX