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

DynaPDF Manual - Page 704

Previous Page 703   Index   Next Page 705

Function Reference
Page 704 of 750
SetStrokeColorF
Syntax:
LBOOL pdfSetStrokeColorF(
const PPDF* IPDF,
// Instance pointer
const float* Color, // Array of float values
UI32 NumComponents) // Must be equal to the underlying color space
The function sets the current stroke color as an array of float values. The components of non-Lab
color spaces must be in the range from 0 through 1. The *a and *b components of a Lab color space
are typically in a range from ­128 though 127. The *L component ranges from 0 through 100.
The number of components must match the number of components of the underlying color space.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetStrokeColorSpace
Syntax:
LBOOL pdfSetStrokeColorSpace(
const PPDF* IPDF,
// Instance pointer
TPDFColorSpace CS) // Color space
The function changes the stroke color space. In PDF, fill and stroke colors use both their own color
spaces. Although it is possible to use different color spaces for strokes and fillings it should be
avoided if possible. The fill color space is the relevant color space when creating interactive objects
such as form field or annotations. See SetFillColorSpace().
Notice:
This function was added to DynaPDF primarily for testing purposes. The color space should be set
with SetColorSpace() which sets always the same color space for fillings and strokes.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: SetStrokeColorEx

Next topic: SetTabLen