StiContextPainter Class

Namespace: Stimulsoft.Base.Context

Methods

Method Returns Description
Clone StiContextPainter  
CreateShadowGraphics StiContext  
Dispose void  
GetDefaultStringFormat StiStringFormatGeom  
GetGenericStringFormat StiStringFormatGeom  
GetPathBounds RectangleF  
MeasureRotatedString (+3 overloads) RectangleF  
MeasureString (+1 overloads) SizeF  
Render void  

Method Details

Clone

Clone(): StiContextPainter

Returns StiContextPainter


CreateShadowGraphics

CreateShadowGraphics(isPrinting: bool, zoom: float): StiContext

Parameters

  • isPrinting (bool)
  • zoom (float)

Returns StiContext


Dispose

Dispose(): void


GetDefaultStringFormat

GetDefaultStringFormat(): StiStringFormatGeom

Returns StiStringFormatGeom


GetGenericStringFormat

GetGenericStringFormat(): StiStringFormatGeom

Returns StiStringFormatGeom


GetPathBounds

GetPathBounds(geoms: List<StiSegmentGeom>): RectangleF

Parameters

Returns RectangleF


MeasureRotatedString

MeasureRotatedString(text: string, font: StiFontGeom, rect: RectangleF, sf: StiStringFormatGeom, angle: float): RectangleF

Parameters

Returns RectangleF


MeasureRotatedString(text: string, font: StiFontGeom, rect: RectangleF, sf: StiStringFormatGeom, mode: StiRotationMode, angle: float): RectangleF

Parameters

Returns RectangleF


MeasureRotatedString(text: string, font: StiFontGeom, point: PointF, sf: StiStringFormatGeom, mode: StiRotationMode, angle: float, maximalWidth: int): RectangleF

Parameters

Returns RectangleF


MeasureRotatedString(text: string, font: StiFontGeom, point: PointF, sf: StiStringFormatGeom, mode: StiRotationMode, angle: float): RectangleF

Parameters

Returns RectangleF


MeasureString

MeasureString(text: string, font: StiFontGeom): SizeF

Parameters

Returns SizeF


MeasureString(text: string, font: StiFontGeom, width: int, sf: StiStringFormatGeom): SizeF

Parameters

Returns SizeF


Render

Render(rect: RectangleF, geoms: List<StiGeom>): void

Parameters

  • rect (RectangleF)
  • geoms (List<StiGeom>)