#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "CRC.hpp"
#include "FEC.hpp"
#include "String.hpp"
#include "SVG.hpp"
Go to the source code of this file.
Functions | |
int | main (int arguments_size, char *arguments[]) |
void | SVG__tag_bit (SVG *svg, double cell_width, unsigned int row, unsigned int column, bool border) |
Draw a bit at row and column. More... | |
void | SVG__tag_bits (SVG *svg, double cell_width, unsigned int first_column, unsigned int first_row, unsigned int last_column, unsigned int last_row, bool border) |
Draw a rectangular section of bits: More... | |
void | SVG__tag_write (unsigned int tag_id, unsigned int tag_size, bool border) |
void SVG__tag_bit | ( | SVG * | svg, |
double | cell_width, | ||
unsigned int | row, | ||
unsigned int | column, | ||
bool | border | ||
) |
Draw a bit at row and column.
svg | is the SVG object to use. |
cell_width | is the cell width and height. |
row | is the row to draw the bit at. |
column | is the column to draw the bit at. |
border | is true if the tag has a border. |
SVG__tag_bit draw a black bit at row and column in the 12 x 12 matrix that makes up a tag and output it to svg. If border is false the matrix is offset to the left by one.
void SVG__tag_bits | ( | SVG * | svg, |
double | cell_width, | ||
unsigned int | first_column, | ||
unsigned int | first_row, | ||
unsigned int | last_column, | ||
unsigned int | last_row, | ||
bool | border | ||
) |
Draw a rectangular section of bits:
svg | is the SVG object to use. |
cell_width | is the cell width and height. |
first_column | is the first column of rectantle. |
first_row | is the first column of rectantle. |
last_column | is the last row to draw the bit at. |
last_row | is the last column to draw the bit at. |
border | is true if the tag has a border. |
SVG__tag_bits() will draw a row or column of black bits from (first_column, first_row) to (last_column, last_row) the 12 x 12 matrix that makes up a tag to svg. If border false, the matrix is offset by the left by one.