Composite setter — accepts named partial updates. Any argument
left NULL keeps its current value. Wraps
FPDFPageObj_SetStrokeColor + FPDFPageObj_SetStrokeWidth.
Usage
pdf_path_set_stroke(
obj,
color = NULL,
width = NULL,
red = NULL,
green = NULL,
blue = NULL,
alpha = NULL
)Arguments
- obj
A
pdfium_objof type"path". Parent doc must be readwrite.- color
Length-3 (RGB) or length-4 (RGBA) numeric vector, or
NULLto keep the current color.- width
Stroke width in points, or
NULL.- red, green, blue, alpha
Individual channel overrides. Useful when you want to tweak one component without restating the rest.
Details
Color accepts either 0-255 integers or 0-1 doubles (ADR-018 §5); the form is auto-detected from the input range.