GraphicsState

Overview

GraphicsState is a class in Aspose.Page FOSS for Python.

Tracks current graphics state parameters.

This class provides 1 method for working with GraphicsState objects in Python programs. Available methods include: clone. All public members are accessible to any Python application after installing the Aspose.Page FOSS for Python package. Properties: char_spacing, clip_path, ctm, current_color_components, current_color_space, current_path, and 22 more.

Properties

NameTypeAccessDescription
ctmtuple[float, float, float, float, float, float]ReadGets the ctm.
line_widthfloatReadGets the line width.
line_capintReadGets the line cap.
line_joinintReadGets the line join.
miter_limitfloatReadGets the miter limit.
dashtuple[list[float], float]ReadGets the dash.
flatnessfloatReadGets the flatness.
current_pathPathReadGets the current path.
current_pointtuple[float, float] | NoneReadGets the current point.
subpath_starttuple[float, float] | NoneReadGets the subpath start.
clip_pathPath | NoneReadGets the clip path.
stroke_paintPaintReadGets the stroke paint.
fill_paintPaintReadGets the fill paint.
image_interpolateboolReadGets the image interpolate.
text_matrixtuple[float, float, float, float, float, float]ReadGets the text matrix.
text_line_matrixtuple[float, float, float, float, float, float]ReadGets the text line matrix.
fontFontResource | NoneReadGets the font.
font_sizefloatReadGets the font size.
char_spacingfloatReadGets the char spacing.
word_spacingfloatReadGets the word spacing.
text_leadingfloatReadGets the text leading.
text_risefloatReadGets the text rise.
type3_char_widthtuple[float, float] | NoneReadGets the type3 char width.
type3_cache_bboxtuple[float, float, float, float] | NoneReadGets the type3 cache bbox.
current_color_spaceColorSpaceReadGets the current color space.
current_color_componentstuple[float, ...]ReadGets the current color components.
current_patternPsPattern | NoneReadGets the current pattern.
overprintboolReadGets the overprint.

Methods

SignatureDescription
clone()"GraphicsState"

See Also