StiContext Class

Namespace: Stimulsoft.Base.Context

Constructors

Constructor Description
StiContext(StiContextPainter contextPainter, bool isGdi, bool isWpf, bool isPrinting, float zoom)  

StiContext(contextPainter: StiContextPainter, isGdi: bool, isWpf: bool, isPrinting: bool, zoom: float)

Parameters

  • contextPainter (StiContextPainter)
  • isGdi (bool)
  • isWpf (bool)
  • isPrinting (bool)
  • zoom (float)

Properties

Property Type Description
Animations List<StiAnimation>  
ContextPainter StiContextPainter  
Geoms List<StiGeom>  
Options StiContextOptions  

Methods

Method Returns Description
CreateShadowGraphics StiContext  
DrawAnimationBar (+1 overloads) void  
DrawAnimationCicledRectangle void  
DrawAnimationColumn (+1 overloads) void  
DrawAnimationCurve void  
DrawAnimationLines void  
DrawAnimationPathElement (+1 overloads) void  
DrawAnimationRectangle void  
DrawCachedShadow (+2 overloads) void  
DrawCicledRectangle void  
DrawCurve void  
DrawEllipse (+1 overloads) void  
DrawImage void  
DrawLine void  
DrawLines void  
DrawPath void  
DrawRectangle (+2 overloads) void  
DrawRotatedString (+1 overloads) StiTextGeom  
DrawShadow void  
DrawShadowCircle void  
DrawShadowRect void  
DrawString (+4 overloads) StiTextGeom  
FillCicledRectangle void  
FillDrawAnimationEllipse (+1 overloads) void  
FillDrawAnimationPath (+1 overloads) void  
FillEllipse (+2 overloads) void  
FillPath void  
FillRectangle (+2 overloads) void  
GetDefaultStringFormat StiStringFormatGeom  
GetGenericStringFormat StiStringFormatGeom  
GetPathBounds RectangleF  
MeasureRotatedString (+3 overloads) RectangleF  
MeasureString (+1 overloads) SizeF  
PopClip void  
PopSmoothingMode void  
PopTextRenderingHint void  
PopTransform void  
PushClip void  
PushClipPath void  
PushRotateTransform void  
PushSmoothingModeToAntiAlias void  
PushTextRenderingHintToAntiAlias void  
PushTranslateTransform void  
Render void  

Method Details

CreateShadowGraphics

CreateShadowGraphics(): StiContext

Returns StiContext


DrawAnimationBar

DrawAnimationBar(wpfBackColor: StiBrush, brush: StiBrush, borderPen: StiPenGeom, columnRect: object, cornerRadius: StiCornerRadius, value: double?, toolTip: string, tag: object, animation: StiAnimation, interaction: StiInteractionDataGeom): void

Parameters


DrawAnimationBar(brush: StiBrush, borderPen: StiPenGeom, columnRect: object, value: double?, toolTip: string, tag: object, animation: StiAnimation, interaction: StiInteractionDataGeom): void

Parameters


DrawAnimationCicledRectangle

DrawAnimationCicledRectangle(wpfBackColor: StiBrush, brush: StiBrush, pen: StiPenGeom, rect: RectangleF, cornerRadius: StiCornerRadius, tag: object, animation: StiAnimation, interaction: StiInteractionDataGeom, toolTip: string): void

Parameters


DrawAnimationColumn

DrawAnimationColumn(wpfBackColor: StiBrush, brush: StiBrush, borderPen: StiPenGeom, rect: object, cornerRadius: StiCornerRadius, value: double?, toolTip: string, tag: object, animation: StiAnimation, interaction: StiInteractionDataGeom): void

Parameters


DrawAnimationColumn(brush: StiBrush, borderPen: StiPenGeom, rect: object, value: double?, toolTip: string, tag: object, animation: StiAnimation, interaction: StiInteractionDataGeom): void

Parameters


DrawAnimationCurve

DrawAnimationCurve(pen: StiPenGeom, **: PointFpoints, **tension: float, animation: StiAnimation): void

Parameters


DrawAnimationLines

DrawAnimationLines(pen: StiPenGeom, **: PointFpoints, **animation: StiAnimation): void

Parameters


DrawAnimationPathElement

DrawAnimationPathElement(wpfBackColor: StiBrush, brush: StiBrush, borderPen: StiPenGeom, path: List<StiSegmentGeom>, rect: object, toolTip: string, tag: object, animation: StiAnimation, interaction: StiInteractionDataGeom): void

Parameters


DrawAnimationPathElement(brush: StiBrush, borderPen: StiPenGeom, path: List<StiSegmentGeom>, rect: object, toolTip: string, tag: object, animation: StiAnimation, interaction: StiInteractionDataGeom): void

Parameters


DrawAnimationRectangle

DrawAnimationRectangle(brush: StiBrush, pen: StiPenGeom, rect: RectangleF, tag: object, animation: StiAnimation, interaction: StiInteractionDataGeom, toolTip: string): void

Parameters


DrawCachedShadow

DrawCachedShadow(rect: RectangleF, sides: StiShadowSides, isPrinting: bool): void

Parameters


DrawCachedShadow(rect: RectangleF, sides: StiShadowSides, isPrinting: bool, clipRect: RectangleF): void

Parameters

  • rect (RectangleF)
  • sides (StiShadowSides)
  • isPrinting (bool)
  • clipRect (RectangleF)

DrawCachedShadow(rect: RectangleF, sides: StiShadowSides, isPrinting: bool, clipRect: RectangleF, cornerRadius: StiCornerRadius): void

Parameters

  • rect (RectangleF)
  • sides (StiShadowSides)
  • isPrinting (bool)
  • clipRect (RectangleF)
  • cornerRadius (StiCornerRadius)

DrawCicledRectangle

DrawCicledRectangle(pen: StiPenGeom, rect: RectangleF, cornerRadius: StiCornerRadius): void

Parameters

  • pen (StiPenGeom)
  • rect (RectangleF)
  • cornerRadius (StiCornerRadius)

DrawCurve

DrawCurve(pen: StiPenGeom, **: PointFpoints, **tension: float): void

Parameters

  • pen (StiPenGeom)
  • ** (PointFpoints)
  • tension (float)

DrawEllipse

DrawEllipse(pen: StiPenGeom, x: float, y: float, width: float, height: float): void

Parameters

  • pen (StiPenGeom)
  • x (float)
  • y (float)
  • width (float)
  • height (float)

DrawEllipse(pen: StiPenGeom, rect: RectangleF): void

Parameters


DrawImage

DrawImage(**: byteimage, **rect: RectangleF): void

Parameters

  • ** (byteimage)
  • rect (RectangleF)

DrawLine

DrawLine(pen: StiPenGeom, x1: float, y1: float, x2: float, y2: float): void

Parameters

  • pen (StiPenGeom)
  • x1 (float)
  • y1 (float)
  • x2 (float)
  • y2 (float)

DrawLines

DrawLines(pen: StiPenGeom, **: PointFpoints): void

Parameters


DrawPath

DrawPath(pen: StiPenGeom, path: List<StiSegmentGeom>, rect: object, tag: object): void

Parameters


DrawRectangle

DrawRectangle(pen: StiPenGeom, rect: Rectangle): void

Parameters


DrawRectangle(pen: StiPenGeom, rect: RectangleF): void

Parameters


DrawRectangle(pen: StiPenGeom, x: float, y: float, width: float, height: float): void

Parameters

  • pen (StiPenGeom)
  • x (float)
  • y (float)
  • width (float)
  • height (float)

DrawRotatedString

DrawRotatedString(text: string, font: StiFontGeom, brush: StiBrush, rect: Rectangle, sf: StiStringFormatGeom, angle: float, antialiasing: bool): StiTextGeom

Parameters

Returns StiTextGeom


DrawRotatedString(text: string, font: StiFontGeom, brush: StiBrush, rect: RectangleF, sf: StiStringFormatGeom, angle: float, antialiasing: bool): StiTextGeom

Parameters

Returns StiTextGeom


DrawShadow

DrawShadow(sg: StiContext, rect: RectangleF, radius: float): void

Parameters

  • sg (StiContext)
  • rect (RectangleF)
  • radius (float)

DrawShadowCircle

DrawShadowCircle(rect: RectangleF, radiusX: double, radiusY: double, shadowWidth: int, animation: StiAnimation): void

Parameters

  • rect (RectangleF)
  • radiusX (double)
  • radiusY (double)
  • shadowWidth (int)
  • animation (StiAnimation)

DrawShadowRect

DrawShadowRect(rect: RectangleF, shadowWidth: int, cornerRadius: StiCornerRadius, animation: StiAnimation): void

Parameters

  • rect (RectangleF)
  • shadowWidth (int)
  • cornerRadius (StiCornerRadius)
  • animation (StiAnimation)

DrawString

DrawString(text: string, font: StiFontGeom, brush: StiBrush, rect: RectangleF, sf: StiStringFormatGeom, antialiasing: bool, toolTip: string, interaction: StiInteractionDataGeom): StiTextGeom

Parameters

Returns StiTextGeom


DrawString(text: string, font: StiFontGeom, brush: StiBrush, rect: Rectangle, sf: StiStringFormatGeom): StiTextGeom

Parameters

Returns StiTextGeom


DrawString(text: string, font: StiFontGeom, brush: StiBrush, rect: RectangleF, sf: StiStringFormatGeom, elementIndex: int): StiTextGeom

Parameters

Returns StiTextGeom


DrawString(text: string, font: StiFontGeom, brush: StiBrush, rect: RectangleF, sf: StiStringFormatGeom, maximalWidth: int, elementIndex: int): StiTextGeom

Parameters

Returns StiTextGeom


DrawString(text: string, font: StiFontGeom, brush: StiBrush, rect: RectangleF, sf: StiStringFormatGeom, antialiasing: bool, toolTip: string): StiTextGeom

Parameters

Returns StiTextGeom


FillCicledRectangle

FillCicledRectangle(brush: StiBrush, rect: RectangleF, cornerRadius: StiCornerRadius, interaction: StiInteractionDataGeom, tooltip: string, elementIndex: int): void

Parameters


FillDrawAnimationEllipse

FillDrawAnimationEllipse(wpfBackColor: StiBrush, brush: StiBrush, pen: StiPenGeom, x: float, y: float, width: float, height: float, toolTip: string, tag: object, animation: StiAnimation, interaction: StiInteractionDataGeom): void

Parameters


FillDrawAnimationEllipse(brush: StiBrush, pen: StiPenGeom, x: float, y: float, width: float, height: float, toolTip: string, tag: object, animation: StiAnimation, interaction: StiInteractionDataGeom): void

Parameters


FillDrawAnimationPath

FillDrawAnimationPath(wpfBackColor: StiBrush, brush: StiBrush, pen: StiPenGeom, path: List<StiSegmentGeom>, rect: object, tag: object, animation: StiAnimation, interaction: StiInteractionDataGeom): void

Parameters


FillDrawAnimationPath(brush: StiBrush, pen: StiPenGeom, path: List<StiSegmentGeom>, rect: object, tag: object, animation: StiAnimation, interaction: StiInteractionDataGeom): void

Parameters


FillEllipse

FillEllipse(brush: StiBrush, x: float, y: float, width: float, height: float, interaction: StiInteractionDataGeom, elementIndex: int): void

Parameters


FillEllipse(brush: StiBrush, x: float, y: float, width: float, height: float, toolTip: string, interaction: StiInteractionDataGeom, elementIndex: int): void

Parameters


FillEllipse(brush: StiBrush, rect: RectangleF, interaction: StiInteractionDataGeom, elementIndex: int): void

Parameters


FillPath

FillPath(brush: StiBrush, path: List<StiSegmentGeom>, rect: object, tag: object, interaction: StiInteractionDataGeom, elementIndex: int, toolTip: string): void

Parameters


FillRectangle

FillRectangle(brush: StiBrush, brushMouseOver: StiBrush, rect: Rectangle, interaction: StiInteractionDataGeom, elementIndex: int): void

Parameters


FillRectangle(brush: StiBrush, rect: Rectangle, interaction: StiInteractionDataGeom, elementIndex: int): void

Parameters


FillRectangle(brush: StiBrush, x: float, y: float, width: float, height: float, interaction: StiInteractionDataGeom, elementIndex: int): void

Parameters


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


PopClip

PopClip(): void


PopSmoothingMode

PopSmoothingMode(): void


PopTextRenderingHint

PopTextRenderingHint(): void


PopTransform

PopTransform(): void


PushClip

PushClip(clipRect: RectangleF): void

Parameters

  • clipRect (RectangleF)

PushClipPath

PushClipPath(listGeoms: List<StiSegmentGeom>): void

Parameters


PushRotateTransform

PushRotateTransform(angle: float): void

Parameters

  • angle (float)

PushSmoothingModeToAntiAlias

PushSmoothingModeToAntiAlias(): void


PushTextRenderingHintToAntiAlias

PushTextRenderingHintToAntiAlias(): void


PushTranslateTransform

PushTranslateTransform(x: float, y: float): void

Parameters

  • x (float)
  • y (float)

Render

Render(rect: RectangleF): void

Parameters

  • rect (RectangleF)