Class GraphicContext

Class GraphicContext

名称: Aspose.Html.Rendering 编辑: Aspose.HTML.dll (25.4.0)

保持当前图形控制参数。这些参数定义了图形运营商执行的全球框架。

[ComVisible(true)]
public class GraphicContext : ICloneable

Inheritance

object GraphicContext

Derived

DocDevice.DocGraphicContext , ImageDevice.ImageGraphicContext , PdfDevice.PdfGraphicContext , XpsDevice.XpsGraphicContext

Implements

ICloneable

继承人

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

GraphicContext()

启动了 Aspose.Html.Rendering.GraphicContext 类的新例子。

public GraphicContext()

Properties

CharacterSpacing

设置或获得字符空间。

public virtual float CharacterSpacing { get; set; }

财产价值

float

FillBrush

设置或获取用于填补路径的内部的刷物。

public virtual IBrush FillBrush { get; set; }

财产价值

IBrush

Font

设置或获取真正的字体类型对象,用于播放文本。

public virtual ITrueTypeFont Font { get; set; }

财产价值

ITrueTypeFont

FontSize

设置或获得文本字体大小。

public virtual float FontSize { get; set; }

财产价值

float

FontStyle

设置或获得文本字体风格。

public virtual WebFontStyle FontStyle { get; set; }

财产价值

WebFontStyle

LineCap

设置或获得指定终点的形状的代码,为任何被打破的开放路径。

public virtual StrokeLineCap LineCap { get; set; }

财产价值

StrokeLineCap

LineDashOffset

设置或获得当前线路Dash模式的阶段补偿。

public virtual float LineDashOffset { get; set; }

财产价值

float

LineDashPattern

设置或获取在路径被打破时使用的模型的描述,可设置为零或空序列被禁用。

public virtual float[] LineDashPattern { get; set; }

财产价值

float ( )

LineJoin

设置或获取代码,指定连接路径的连接部分之间的关节的形状。

public virtual StrokeLineJoin LineJoin { get; set; }

财产价值

StrokeLineJoin

LineWidth

设置或得到路径的厚度被打破。

public virtual float LineWidth { get; set; }

财产价值

float

MiterLimit

设置或获得测量线的最大长度连接到破碎的路径。这个参数限制了当线条部分在尖角合并时产生的“点”的长度。

public virtual float MiterLimit { get; set; }

财产价值

float

StrokeBrush

设置或获取用于破碎的路径的刷物。

public virtual IBrush StrokeBrush { get; set; }

财产价值

IBrush

TextInfo

收到一个 Aspose.Html.Rendering.TextInfo 对象,其中包含有关文本的信息。

public virtual TextInfo TextInfo { get; }

财产价值

TextInfo

TransformationMatrix

设置或获得转型矩阵。

public virtual IMatrix TransformationMatrix { get; set; }

财产价值

IMatrix

Methods

Clone()

创建一个新的 GraphicContext 类的例子,具有与现有例子相同的属性值。

public virtual GraphicContext Clone()

Returns

GraphicContext

一个图形背景的例子

Transform(伊马特里克斯)

修改当前的转型矩阵,通过增加所指定的矩阵。

public virtual void Transform(IMatrix matrix)

Parameters

matrix IMatrix

转型矩阵。

 中文