Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 209

Previous Page 208   Index   Next Page 210

Function Reference
Page 209 of 750
Shadings support the color spaces DeviceGray, DeviceRGB, and DeviceCMYK. The color values of
the start and end color must be defined in the current color space. See also SetColorSpace().
Shadings are invisible as long they are not drawn by using the function ApplyShading().
ApplyShading() requires a shading handle that was returned by this function.
Remarks:
See the function ApplyShading() for an example application.
Return values:
If the function succeeds the return value is the handle of the shading, a value greater or equal zero. If
the function fails the return value is a negative error code.
CreateBarcodeField
Syntax:
SI32 pdfCreateBarcodeField(
const PPDF* IPDF,
// Instance pointer
const char* Name,
// Field name
SI32 Parent,
// Parent field or -1
double PosX,
// X-Coordinate of the barcode field
double PosY,
// Y-Coordinate of the barcode field
double Width,
// Width in unscaled units
double Height,
// Height in unscaled units
struct TPDFBarcode* Barcode) // see below
struct TPDFBarcode
{
UI32
StructSize;
// Must be set to sizeof(TPDFBarcode)
const char* CaptionA;
// Optional
const UI16* CaptionW;
// Optional
float
ECC;
// 0..8 for PDF417, or 0..3 for QRCode
float
Height;
// Height in inches (field height / 72.0)
float
nCodeWordCol; // Number of codewords per barcode coloumn
float
nCodeWordRow; // Codewords per barcode row (PDF417)
UI32
Resolution;
// Resolution
const char* Symbology;
// Must be PDF417, QRCode, or DataMatrix
float
Version;
// Should be 1
float
Width;
// Width in inches (field width / 72.0)
float
XSymHeight;
// Only needed for PDF417. The vertical
// distance between two barcode modules,
// measured in pixels. The ratio XSymHeight /
// XSymWidth shall be an integer value. For
// PDF417, the acceptable ratio range is from
// 1 to 4. For QRCode and DataMatrix, this
// ratio shall always be 1.
float
XSymWidth;
// The horizontal distance, in pixels,
// between two barcode modules.
};
 

Previous topic: CreateAxialShading

Next topic: CreateButton