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]Read/WriteGets or sets the ctm.
line_widthfloatRead/WriteGets or sets the line width.
line_capintRead/WriteGets or sets the line cap.
line_joinintRead/WriteGets or sets the line join.
miter_limitfloatRead/WriteGets or sets the miter limit.
dashtuple[list[float], float]Read/WriteGets or sets the dash.
flatnessfloatRead/WriteGets or sets the flatness.
current_pathPathRead/WriteGets or sets the current path.
current_pointtuple[float, float] | NoneRead/WriteGets or sets the current point.
subpath_starttuple[float, float] | NoneRead/WriteGets or sets the subpath start.
clip_pathPath | NoneRead/WriteGets or sets the clip path.
stroke_paintPaintRead/WriteGets or sets the stroke paint.
fill_paintPaintRead/WriteGets or sets the fill paint.
image_interpolateboolRead/WriteGets or sets the image interpolate.
text_matrixtuple[float, float, float, float, float, float]Read/WriteGets or sets the text matrix.
text_line_matrixtuple[float, float, float, float, float, float]Read/WriteGets or sets the text line matrix.
fontFontResource | NoneRead/WriteGets or sets the font.
font_sizefloatRead/WriteGets or sets the font size.
char_spacingfloatRead/WriteGets or sets the char spacing.
word_spacingfloatRead/WriteGets or sets the word spacing.
text_leadingfloatRead/WriteGets or sets the text leading.
text_risefloatRead/WriteGets or sets the text rise.
type3_char_widthtuple[float, float] | NoneRead/WriteGets or sets the type3 char width.
type3_cache_bboxtuple[float, float, float, float] | NoneRead/WriteGets or sets the type3 cache bbox.
current_color_spaceColorSpaceRead/WriteGets or sets the current color space.
current_color_componentstuple[float, ...]Read/WriteGets or sets the current color components.
current_patternPsPattern | NoneRead/WriteGets or sets the current pattern.
overprintboolRead/WriteGets or sets the overprint.

Methods

SignatureDescription
clone()"GraphicsState"

See Also

 English