AbstractRenderer

Image renderer, supporting multiple backends.

Members

Functions

addColor
void addColor(string id, ColorInterface color)
Undocumented in source. Be warned that the author may not have intended to support it.
addDecorator
AbstractRenderer addDecorator(DecoratorInterface decorator)

Adds a decorator to the renderer.

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.
getBackgroundColor
ColorInterface getBackgroundColor()

Gets background color.

getByteStream
string getByteStream()
Undocumented in source. Be warned that the author may not have intended to support it.
getForegroundColor
ColorInterface getForegroundColor()

Gets foreground color.

getHeight
int getHeight()

Gets the height around the rendered image.

getMargin
int getMargin()

Gets the margin around the QR code.

getWidth
int getWidth()

Gets the width of the rendered image.

initRender
void initRender()
Undocumented in source. Be warned that the author may not have intended to support it.
render
string render(QrCode qrCode)

render(): defined by RendererInterface.

setBackgroundColor
AbstractRenderer setBackgroundColor(ColorInterface color)

Sets background color.

setForegroundColor
AbstractRenderer setForegroundColor(ColorInterface color)

Sets foreground color.

setHeight
AbstractRenderer setHeight(int _height)

Sets the height around the renderd image.

setMargin
AbstractRenderer setMargin(int _margin)

Sets the margin around the QR code.

setRoundDimensions
AbstractRenderer setRoundDimensions(bool flag)

Sets whether dimensions should be rounded down.

setWidth
AbstractRenderer setWidth(int _width)

Sets the height around the renderd image.

shouldRoundDimensions
bool shouldRoundDimensions()

Gets whether dimensions should be rounded down.

Variables

backgroundColor
ColorInterface backgroundColor;

Background color.

blockSize
int blockSize;

Size of each individual block.

decorators
DecoratorInterface[] decorators;

Decorators used on QR codes.

finalHeight
int finalHeight;

Final height of the image.

finalWidth
int finalWidth;

Final width of the image.

floorToClosestDimension
bool floorToClosestDimension;

Whether dimensions should be rounded down

foregroundColor
ColorInterface foregroundColor;

Foreground color.

height
int height;

Requested height of the rendered image.

margin
int margin;

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

roundDimensions
bool roundDimensions;

Whether dimensions should be rounded down.

width
int width;

Requested width of the rendered image.

Inherited Members

From RendererInterface

render
string render(QrCode qrCode)

Renders a QR code.

initRender
void initRender()
Undocumented in source.
addColor
void addColor(string id, ColorInterface color)
Undocumented in source.
drawBackground
void drawBackground(string colorId)
Undocumented in source.
drawBlock
void drawBlock(int x, int y, string colorId)
Undocumented in source.
getByteStream
string getByteStream()
Undocumented in source.

Meta