Class GraphicContext
Namespace: Aspose.Html.Rendering
Assembly: Aspose.HTML.dll (25.2.0)
Holds current graphics control parameters. These parameters define the global framework within which the graphics operators execute.
[ComVisible(true)]
public class GraphicContext : ICloneable
Inheritance
Derived
DocDevice.DocGraphicContext, ImageDevice.ImageGraphicContext, PdfDevice.PdfGraphicContext, XpsDevice.XpsGraphicContext
Implements
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
GraphicContext()
Initializes a new instance of the Aspose.Html.Rendering.GraphicContext class.
public GraphicContext()
Properties
CharacterSpacing
Sets or gets character spacing.
public virtual float CharacterSpacing { get; set; }
Property Value
FillBrush
Sets or gets the brush object that is used to fill the interiors of paths.
public virtual IBrush FillBrush { get; set; }
Property Value
Font
Sets or gets the true type font object that is used for rendering text.
public virtual ITrueTypeFont Font { get; set; }
Property Value
FontSize
Sets or gets text font size.
public virtual float FontSize { get; set; }
Property Value
FontStyle
Sets or gets text font style.
public virtual WebFontStyle FontStyle { get; set; }
Property Value
LineCap
Sets or gets the code specifying the shape of the endpoints for any open path that is stroked.
public virtual StrokeLineCap LineCap { get; set; }
Property Value
LineDashOffset
Sets or gets the phase offset of the current line dash pattern.
public virtual float LineDashOffset { get; set; }
Property Value
LineDashPattern
Sets or gets the description of the dash pattern to be used when paths are stroked. Can be set to null or an empty array to be disabled.
public virtual float[] LineDashPattern { get; set; }
Property Value
float[]
LineJoin
Sets or gets the code specifying the shape of joints between connected segments of a stroked path.
public virtual StrokeLineJoin LineJoin { get; set; }
Property Value
LineWidth
Sets or gets the thickness of paths to be stroked.
public virtual float LineWidth { get; set; }
Property Value
MiterLimit
Sets or gets the maximum length of mitered line joins for stroked paths. This parameter limits the length of “spikes” produced when line segments join at sharp angles.
public virtual float MiterLimit { get; set; }
Property Value
StrokeBrush
Sets or gets the brush object that is used for stroked paths.
public virtual IBrush StrokeBrush { get; set; }
Property Value
TextInfo
Gets a Aspose.Html.Rendering.TextInfo object which contains information about rendered text.
public virtual TextInfo TextInfo { get; }
Property Value
TransformationMatrix
Sets or gets transformation matrix.
public virtual IMatrix TransformationMatrix { get; set; }
Property Value
Methods
Clone()
Creates a new instance of a GraphicContext class with the same property values as an existing instance.
public virtual GraphicContext Clone()
Returns
Instance of a GraphicContext
Transform(IMatrix)
Modify the current transformation matrix by multiplying the specified matrix.
public virtual void Transform(IMatrix matrix)
Parameters
matrix
IMatrix
Transformation matrix.