public class GraphicContext extends Object implements com.aspose.html.internal.ms.System.ICloneable, Cloneable
Holds current graphics control parameters. These parameters define the global framework within which the graphics operators execute.
Constructor and Description |
---|
GraphicContext() |
Modifier and Type | Method and Description |
---|---|
GraphicContext |
deepClone()
Creates a new instance of a GraphicContext class with the same property values as an existing instance.
|
float |
getCharacterSpacing()
Sets or gets character spacing.
|
IBrush |
getFillBrush()
Sets or gets the brush object that is used to fill the interiors of paths.
|
ITrueTypeFont |
getFont()
Sets or gets the true type font object that is used for rendering text.
|
float |
getFontSize()
Sets or gets text font size.
|
int |
getFontStyle()
Sets or gets text font style.
|
int |
getLineCap()
Sets or gets the code specifying the shape of the endpoints for any open path that is stroked.
|
int |
getLineDashCap() |
float |
getLineDashOffset()
Sets or gets the phase offset of the current line dash pattern.
|
float[] |
getLineDashPattern()
Sets or gets the description of the dash pattern to be used when paths are stroked.
|
int |
getLineDashStyle()
Sets of gets the style of dashed lines of a stroked path.
|
int |
getLineJoin()
Sets or gets the code specifying the shape of joints between connected segments of a stroked path.
|
float |
getLineWidth()
Sets or gets the thickness of paths to be stroked.
|
float |
getMiterLimit()
Sets or gets the maximum length of mitered line joins for stroked paths.
|
IBrush |
getStrokeBrush()
Sets or gets the brush object that is used for stroked paths.
|
com.aspose.html.internal.ms.System.Drawing.Drawing2D.Matrix |
getTransformationMatrix()
Sets or gets transformation matrix.
|
void |
setCharacterSpacing(float value)
Sets or gets character spacing.
|
void |
setFillBrush(IBrush value)
Sets or gets the brush object that is used to fill the interiors of paths.
|
void |
setFont(ITrueTypeFont value)
Sets or gets the true type font object that is used for rendering text.
|
void |
setFontSize(float value)
Sets or gets text font size.
|
void |
setFontStyle(int value)
Sets or gets text font style.
|
void |
setLineCap(int value)
Sets or gets the code specifying the shape of the endpoints for any open path that is stroked.
|
void |
setLineDashCap(int value) |
void |
setLineDashOffset(float value)
Sets or gets the phase offset of the current line dash pattern.
|
void |
setLineDashPattern(float[] value)
Sets or gets the description of the dash pattern to be used when paths are stroked.
|
void |
setLineDashStyle(int value)
Sets of gets the style of dashed lines of a stroked path.
|
void |
setLineJoin(int value)
Sets or gets the code specifying the shape of joints between connected segments of a stroked path.
|
void |
setLineWidth(float value)
Sets or gets the thickness of paths to be stroked.
|
void |
setMiterLimit(float value)
Sets or gets the maximum length of mitered line joins for stroked paths.
|
void |
setStrokeBrush(IBrush value)
Sets or gets the brush object that is used for stroked paths.
|
void |
setTransformationMatrix(com.aspose.html.internal.ms.System.Drawing.Drawing2D.Matrix value)
Sets or gets transformation matrix.
|
void |
transform(com.aspose.html.internal.ms.System.Drawing.Drawing2D.Matrix matrix)
Modify the current transformation matrix by multiplying the specified matrix.
|
public int getLineCap()
Sets or gets the code specifying the shape of the endpoints for any open path that is stroked.
public void setLineCap(int value)
Sets or gets the code specifying the shape of the endpoints for any open path that is stroked.
public float getLineDashOffset()
Sets or gets the phase offset of the current line dash pattern.
public void setLineDashOffset(float value)
Sets or gets the phase offset of the current line dash pattern.
public float[] getLineDashPattern()
Sets or gets the description of the dash pattern to be used when paths are stroked.
public void setLineDashPattern(float[] value)
Sets or gets the description of the dash pattern to be used when paths are stroked.
public int getLineDashStyle()
Sets of gets the style of dashed lines of a stroked path.
public void setLineDashStyle(int value)
Sets of gets the style of dashed lines of a stroked path.
public int getLineJoin()
Sets or gets the code specifying the shape of joints between connected segments of a stroked path.
public void setLineJoin(int value)
Sets or gets the code specifying the shape of joints between connected segments of a stroked path.
public float getLineWidth()
Sets or gets the thickness of paths to be stroked.
public void setLineWidth(float value)
Sets or gets the thickness of paths to be stroked.
public float getMiterLimit()
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 void setMiterLimit(float value)
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 IBrush getFillBrush()
Sets or gets the brush object that is used to fill the interiors of paths.
public void setFillBrush(IBrush value)
Sets or gets the brush object that is used to fill the interiors of paths.
public IBrush getStrokeBrush()
Sets or gets the brush object that is used for stroked paths.
public void setStrokeBrush(IBrush value)
Sets or gets the brush object that is used for stroked paths.
public ITrueTypeFont getFont()
Sets or gets the true type font object that is used for rendering text.
public void setFont(ITrueTypeFont value)
Sets or gets the true type font object that is used for rendering text.
public float getFontSize()
Sets or gets text font size.
public void setFontSize(float value)
Sets or gets text font size.
public int getFontStyle()
Sets or gets text font style.
public void setFontStyle(int value)
Sets or gets text font style.
public float getCharacterSpacing()
Sets or gets character spacing.
public void setCharacterSpacing(float value)
Sets or gets character spacing.
public com.aspose.html.internal.ms.System.Drawing.Drawing2D.Matrix getTransformationMatrix()
Sets or gets transformation matrix.
public void setTransformationMatrix(com.aspose.html.internal.ms.System.Drawing.Drawing2D.Matrix value)
Sets or gets transformation matrix.
public int getLineDashCap()
public void setLineDashCap(int value)
public void transform(com.aspose.html.internal.ms.System.Drawing.Drawing2D.Matrix matrix)
Modify the current transformation matrix by multiplying the specified matrix.
matrix
- Transformation matrix.public GraphicContext deepClone()
Creates a new instance of a GraphicContext class with the same property values as an existing instance.
deepClone
in interface com.aspose.html.internal.ms.System.ICloneable