
PowerDoc Objects
Pattern Fill Definition
Overview
This object represents an ordered list of pattern fill definitions.
Designated Rendering Function: NONE
Links
Properties
pdNw (1039) PD_WORD_UNSIGNED
Also appears in: Bitmap Image Data, Grid
Number of items in horizontal direction. Depending on the context, the items can be pixels, rows, grid lines etc.
pdNh (1040) PD_WORD_UNSIGNED
Also appears in: Bitmap Image Data, Grid
Number of items in vertical direction. Depending on the context, the items can be pixels, rows, grid lines etc.
pdImageDataGray (1046) PD_HEX
Supported Compression Methods: 011, 006
Also appears in: Bitmap Image Data
Image data in grayscale format (variable length, 1 byte per pixel).
pdImageDataMono (1129) PD_HEX
Also appears in: Bitmap Image Data
Monochrome image data (variable length, 1 byte stores 8 pixels).
pdPatternROP (1131) PD_BYTE_UNSIGNED
Also appears in: Pattern
Pattern Raster Operation.
Supported values:
0 = None
1 = Invert
2 = X-Mirror
3 = Invert and X-Mirror
Example
C/C++
DT_ID_SLONG obj[3];
obj[0] = pdObjAdd(pd, 0, "Pattern Fill Definition - First");
obj[1] = pdObjAdd(pd, 0, "Pattern Fill Definition - Second");
obj[2] = pdObjAdd(pd, 0, "Pattern Fill Definition - Third");
pdLinkAdd(pd, obj[0], pdPatternFillPtr, obj[1]);
pdPropAdd(pd, obj[0], pdNw, "3", PD_WORD_UNSIGNED);
pdPropAdd(pd, obj[0], pdNh, "3", PD_WORD_UNSIGNED);
pdPropAdd(pd, obj[0], pdImageDataGray, "880088 888888 008800", PD_HEX);
pdLinkAdd(pd, obj[1], pdPatternFillPtr, obj[2]);
pdPropAdd(pd, obj[1], pdNw, "4", PD_WORD_UNSIGNED);
pdPropAdd(pd, obj[1], pdNh, "4", PD_WORD_UNSIGNED);
pdPropAdd(pd, obj[1], pdImageDataGray, "88880000 88880000 00008888 00008888", PD_HEX);
pdPropAdd(pd, obj[2], pdNw, "5", PD_WORD_UNSIGNED);
pdPropAdd(pd, obj[2], pdNh, "5", PD_WORD_UNSIGNED);
pdPropAdd(pd, obj[2], pdImageDataGray, "8888008888 8888008888 8888888888 0000880000 0000880000", PD_HEX);
INTEGRAL DSL
local o = @(label = "") CDTObj(::my.doc, label);
local p = @(id, str, len = PD_DEFAULT) CDTProp(id, str, len);
local s = @(id, str) CDTPropStr(id, str);
local i = @(id, num) CDTPropInt(id, num);
local l = @(id, obj) CDTLink(id, obj);
local obj_0 = o("Pattern Fill Definition - First");
local obj_1 = o("Pattern Fill Definition - Second");
local obj_2 = o("Pattern Fill Definition - Third");
obj_0 + l(pdPatternFillPtr, obj_1);
obj_0 + i(pdNw, 3);
obj_0 + i(pdNh, 3);
obj_0 + p(pdImageDataGray, "880088 888888 008800");
obj_1 + l(pdPatternFillPtr, obj_2);
obj_1 + i(pdNw, 4);
obj_1 + i(pdNh, 4);
obj_1 + p(pdImageDataGray, "88880000 88880000 00008888 00008888");
obj_2 + i(pdNw, 5);
obj_2 + i(pdNh, 5);
obj_2 + p(pdImageDataGray, "8888008888 8888008888 8888888888 0000880000 0000880000");
