Png

PNG backend.

Members

Functions

addColor
void addColor(string id, ColorInterface color)

addColor(): defined by RendererInterface.

drawBackground
void drawBackground(string colorId)

drawBackground(): defined by RendererInterface.

drawBlock
void drawBlock(int x, int y, string colorId)

drawBlock(): defined by RendererInterface.

getByteStream
string getByteStream()

getByteStream(): defined by RendererInterface.

initRender
void initRender()

init(): defined by RendererInterface.

setMergeImage
void setMergeImage(string merge_file)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

colors
Color[string] colors;

Colors used for drawing.

draw
DrawingContext draw;
Undocumented in source.
image
Image image;
Undocumented in source.
mergeImage
Image mergeImage;
Undocumented in source.

Inherited Members

From AbstractRenderer

margin
int margin;

Margin around the QR code, also known as quiet zone.

width
int width;

Requested width of the rendered image.

height
int height;

Requested height of the rendered image.

roundDimensions
bool roundDimensions;

Whether dimensions should be rounded down.

finalWidth
int finalWidth;

Final width of the image.

finalHeight
int finalHeight;

Final height of the image.

blockSize
int blockSize;

Size of each individual block.

backgroundColor
ColorInterface backgroundColor;

Background color.

floorToClosestDimension
bool floorToClosestDimension;

Whether dimensions should be rounded down

foregroundColor
ColorInterface foregroundColor;

Foreground color.

decorators
DecoratorInterface[] decorators;

Decorators used on QR codes.

setMargin
AbstractRenderer setMargin(int _margin)

Sets the margin around the QR code.

getMargin
int getMargin()

Gets the margin around the QR code.

setWidth
AbstractRenderer setWidth(int _width)

Sets the height around the renderd image.

getWidth
int getWidth()

Gets the width of the rendered image.

setHeight
AbstractRenderer setHeight(int _height)

Sets the height around the renderd image.

getHeight
int getHeight()

Gets the height around the rendered image.

setRoundDimensions
AbstractRenderer setRoundDimensions(bool flag)

Sets whether dimensions should be rounded down.

shouldRoundDimensions
bool shouldRoundDimensions()

Gets whether dimensions should be rounded down.

setBackgroundColor
AbstractRenderer setBackgroundColor(ColorInterface color)

Sets background color.

getBackgroundColor
ColorInterface getBackgroundColor()

Gets background color.

setForegroundColor
AbstractRenderer setForegroundColor(ColorInterface color)

Sets foreground color.

getForegroundColor
ColorInterface getForegroundColor()

Gets foreground color.

addDecorator
AbstractRenderer addDecorator(DecoratorInterface decorator)

Adds a decorator to the renderer.

render
string render(QrCode qrCode)

render(): defined by RendererInterface.

initRender
void initRender()
Undocumented in source. Be warned that the author may not have intended to support it.
addColor
void addColor(string id, ColorInterface color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawBackground
void drawBackground(string colorId)
Undocumented in source. Be warned that the author may not have intended to support it.
drawBlock
void drawBlock(int x, int y, string colorId)
Undocumented in source. Be warned that the author may not have intended to support it.
getByteStream
string getByteStream()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta