Skip to content

API reference / Common / Engine types / ImageObject

Interface: ImageObject ​

An image painted under the owning [GraphicsObject]'s transform, which maps the image's [0,1]×[0,1] unit square (top-left origin) into the object's local coordinate space.

nonstroking_style carries the alpha / overprint that modulate the image. For an image mask (ImageKind::Stencil), nonstroking_style.brush supplies the stencil paint color (PDF spec 8.9.6.4); for non-mask images the brush is unused but preserved — the importer captures the gs nonstroking color at the op so round-trip emit can reset gs state correctly.

No stroking_style field — PDF's Do for an image never strokes, and the image-mask stencil pulls its paint color from the non-stroking brush only. Stroke state at the invocation site has no effect.

Properties ​

PropertyType
imagestring
nonstrokingStyleNonstrokingStyle
renderStyleRenderStyle
softMaskstring | null