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
- wpfBackColor (StiBrush)
- brush (StiBrush)
- borderPen (StiPenGeom)
- columnRect (object)
- cornerRadius (StiCornerRadius)
- value (double?)
- toolTip (string)
- tag (object)
- animation (StiAnimation)
- interaction (StiInteractionDataGeom)
DrawAnimationBar(brush: StiBrush, borderPen: StiPenGeom, columnRect: object, value: double?, toolTip: string, tag: object, animation: StiAnimation, interaction: StiInteractionDataGeom): void
Parameters
- brush (StiBrush)
- borderPen (StiPenGeom)
- columnRect (object)
- value (double?)
- toolTip (string)
- tag (object)
- animation (StiAnimation)
- interaction (StiInteractionDataGeom)
DrawAnimationCicledRectangle
DrawAnimationCicledRectangle(wpfBackColor: StiBrush, brush: StiBrush, pen: StiPenGeom, rect: RectangleF, cornerRadius: StiCornerRadius, tag: object, animation: StiAnimation, interaction: StiInteractionDataGeom, toolTip: string): void
Parameters
- wpfBackColor (StiBrush)
- brush (StiBrush)
- pen (StiPenGeom)
- rect (RectangleF)
- cornerRadius (StiCornerRadius)
- tag (object)
- animation (StiAnimation)
- interaction (StiInteractionDataGeom)
- toolTip (string)
DrawAnimationColumn
DrawAnimationColumn(wpfBackColor: StiBrush, brush: StiBrush, borderPen: StiPenGeom, rect: object, cornerRadius: StiCornerRadius, value: double?, toolTip: string, tag: object, animation: StiAnimation, interaction: StiInteractionDataGeom): void
Parameters
- wpfBackColor (StiBrush)
- brush (StiBrush)
- borderPen (StiPenGeom)
- rect (object)
- cornerRadius (StiCornerRadius)
- value (double?)
- toolTip (string)
- tag (object)
- animation (StiAnimation)
- interaction (StiInteractionDataGeom)
DrawAnimationColumn(brush: StiBrush, borderPen: StiPenGeom, rect: object, value: double?, toolTip: string, tag: object, animation: StiAnimation, interaction: StiInteractionDataGeom): void
Parameters
- brush (StiBrush)
- borderPen (StiPenGeom)
- rect (object)
- value (double?)
- toolTip (string)
- tag (object)
- animation (StiAnimation)
- interaction (StiInteractionDataGeom)
DrawAnimationCurve
DrawAnimationCurve(pen: StiPenGeom, **: PointFpoints, **tension: float, animation: StiAnimation): void
Parameters
- pen (StiPenGeom)
- ** (PointFpoints)
- tension (float)
- animation (StiAnimation)
DrawAnimationLines
DrawAnimationLines(pen: StiPenGeom, **: PointFpoints, **animation: StiAnimation): void
Parameters
- pen (StiPenGeom)
- ** (PointFpoints)
- animation (StiAnimation)
DrawAnimationPathElement
DrawAnimationPathElement(wpfBackColor: StiBrush, brush: StiBrush, borderPen: StiPenGeom, path: List<StiSegmentGeom>, rect: object, toolTip: string, tag: object, animation: StiAnimation, interaction: StiInteractionDataGeom): void
Parameters
- wpfBackColor (StiBrush)
- brush (StiBrush)
- borderPen (StiPenGeom)
- path (List<StiSegmentGeom>)
- rect (object)
- toolTip (string)
- tag (object)
- animation (StiAnimation)
- interaction (StiInteractionDataGeom)
DrawAnimationPathElement(brush: StiBrush, borderPen: StiPenGeom, path: List<StiSegmentGeom>, rect: object, toolTip: string, tag: object, animation: StiAnimation, interaction: StiInteractionDataGeom): void
Parameters
- brush (StiBrush)
- borderPen (StiPenGeom)
- path (List<StiSegmentGeom>)
- rect (object)
- toolTip (string)
- tag (object)
- animation (StiAnimation)
- interaction (StiInteractionDataGeom)
DrawAnimationRectangle
DrawAnimationRectangle(brush: StiBrush, pen: StiPenGeom, rect: RectangleF, tag: object, animation: StiAnimation, interaction: StiInteractionDataGeom, toolTip: string): void
Parameters
- brush (StiBrush)
- pen (StiPenGeom)
- rect (RectangleF)
- tag (object)
- animation (StiAnimation)
- interaction (StiInteractionDataGeom)
- toolTip (string)
DrawCachedShadow
DrawCachedShadow(rect: RectangleF, sides: StiShadowSides, isPrinting: bool): void
Parameters
- rect (RectangleF)
- sides (StiShadowSides)
- isPrinting (bool)
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
- pen (StiPenGeom)
- rect (RectangleF)
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
- pen (StiPenGeom)
- ** (PointFpoints)
DrawPath
DrawPath(pen: StiPenGeom, path: List<StiSegmentGeom>, rect: object, tag: object): void
Parameters
- pen (StiPenGeom)
- path (List<StiSegmentGeom>)
- rect (object)
- tag (object)
DrawRectangle
DrawRectangle(pen: StiPenGeom, rect: Rectangle): void
Parameters
- pen (StiPenGeom)
- rect (Rectangle)
DrawRectangle(pen: StiPenGeom, rect: RectangleF): void
Parameters
- pen (StiPenGeom)
- rect (RectangleF)
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
- text (string)
- font (StiFontGeom)
- brush (StiBrush)
- rect (Rectangle)
- sf (StiStringFormatGeom)
- angle (float)
- antialiasing (bool)
Returns StiTextGeom
DrawRotatedString(text: string, font: StiFontGeom, brush: StiBrush, rect: RectangleF, sf: StiStringFormatGeom, angle: float, antialiasing: bool): StiTextGeom
Parameters
- text (string)
- font (StiFontGeom)
- brush (StiBrush)
- rect (RectangleF)
- sf (StiStringFormatGeom)
- angle (float)
- antialiasing (bool)
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
- text (string)
- font (StiFontGeom)
- brush (StiBrush)
- rect (RectangleF)
- sf (StiStringFormatGeom)
- antialiasing (bool)
- toolTip (string)
- interaction (StiInteractionDataGeom)
Returns StiTextGeom
DrawString(text: string, font: StiFontGeom, brush: StiBrush, rect: Rectangle, sf: StiStringFormatGeom): StiTextGeom
Parameters
- text (string)
- font (StiFontGeom)
- brush (StiBrush)
- rect (Rectangle)
- sf (StiStringFormatGeom)
Returns StiTextGeom
DrawString(text: string, font: StiFontGeom, brush: StiBrush, rect: RectangleF, sf: StiStringFormatGeom, elementIndex: int): StiTextGeom
Parameters
- text (string)
- font (StiFontGeom)
- brush (StiBrush)
- rect (RectangleF)
- sf (StiStringFormatGeom)
- elementIndex (int)
Returns StiTextGeom
DrawString(text: string, font: StiFontGeom, brush: StiBrush, rect: RectangleF, sf: StiStringFormatGeom, maximalWidth: int, elementIndex: int): StiTextGeom
Parameters
- text (string)
- font (StiFontGeom)
- brush (StiBrush)
- rect (RectangleF)
- sf (StiStringFormatGeom)
- maximalWidth (int)
- elementIndex (int)
Returns StiTextGeom
DrawString(text: string, font: StiFontGeom, brush: StiBrush, rect: RectangleF, sf: StiStringFormatGeom, antialiasing: bool, toolTip: string): StiTextGeom
Parameters
- text (string)
- font (StiFontGeom)
- brush (StiBrush)
- rect (RectangleF)
- sf (StiStringFormatGeom)
- antialiasing (bool)
- toolTip (string)
Returns StiTextGeom
FillCicledRectangle
FillCicledRectangle(brush: StiBrush, rect: RectangleF, cornerRadius: StiCornerRadius, interaction: StiInteractionDataGeom, tooltip: string, elementIndex: int): void
Parameters
- brush (StiBrush)
- rect (RectangleF)
- cornerRadius (StiCornerRadius)
- interaction (StiInteractionDataGeom)
- tooltip (string)
- elementIndex (int)
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
- wpfBackColor (StiBrush)
- brush (StiBrush)
- pen (StiPenGeom)
- x (float)
- y (float)
- width (float)
- height (float)
- toolTip (string)
- tag (object)
- animation (StiAnimation)
- interaction (StiInteractionDataGeom)
FillDrawAnimationEllipse(brush: StiBrush, pen: StiPenGeom, x: float, y: float, width: float, height: float, toolTip: string, tag: object, animation: StiAnimation, interaction: StiInteractionDataGeom): void
Parameters
- brush (StiBrush)
- pen (StiPenGeom)
- x (float)
- y (float)
- width (float)
- height (float)
- toolTip (string)
- tag (object)
- animation (StiAnimation)
- interaction (StiInteractionDataGeom)
FillDrawAnimationPath
FillDrawAnimationPath(wpfBackColor: StiBrush, brush: StiBrush, pen: StiPenGeom, path: List<StiSegmentGeom>, rect: object, tag: object, animation: StiAnimation, interaction: StiInteractionDataGeom): void
Parameters
- wpfBackColor (StiBrush)
- brush (StiBrush)
- pen (StiPenGeom)
- path (List<StiSegmentGeom>)
- rect (object)
- tag (object)
- animation (StiAnimation)
- interaction (StiInteractionDataGeom)
FillDrawAnimationPath(brush: StiBrush, pen: StiPenGeom, path: List<StiSegmentGeom>, rect: object, tag: object, animation: StiAnimation, interaction: StiInteractionDataGeom): void
Parameters
- brush (StiBrush)
- pen (StiPenGeom)
- path (List<StiSegmentGeom>)
- rect (object)
- tag (object)
- animation (StiAnimation)
- interaction (StiInteractionDataGeom)
FillEllipse
FillEllipse(brush: StiBrush, x: float, y: float, width: float, height: float, interaction: StiInteractionDataGeom, elementIndex: int): void
Parameters
- brush (StiBrush)
- x (float)
- y (float)
- width (float)
- height (float)
- interaction (StiInteractionDataGeom)
- elementIndex (int)
FillEllipse(brush: StiBrush, x: float, y: float, width: float, height: float, toolTip: string, interaction: StiInteractionDataGeom, elementIndex: int): void
Parameters
- brush (StiBrush)
- x (float)
- y (float)
- width (float)
- height (float)
- toolTip (string)
- interaction (StiInteractionDataGeom)
- elementIndex (int)
FillEllipse(brush: StiBrush, rect: RectangleF, interaction: StiInteractionDataGeom, elementIndex: int): void
Parameters
- brush (StiBrush)
- rect (RectangleF)
- interaction (StiInteractionDataGeom)
- elementIndex (int)
FillPath
FillPath(brush: StiBrush, path: List<StiSegmentGeom>, rect: object, tag: object, interaction: StiInteractionDataGeom, elementIndex: int, toolTip: string): void
Parameters
- brush (StiBrush)
- path (List<StiSegmentGeom>)
- rect (object)
- tag (object)
- interaction (StiInteractionDataGeom)
- elementIndex (int)
- toolTip (string)
FillRectangle
FillRectangle(brush: StiBrush, brushMouseOver: StiBrush, rect: Rectangle, interaction: StiInteractionDataGeom, elementIndex: int): void
Parameters
- brush (StiBrush)
- brushMouseOver (StiBrush)
- rect (Rectangle)
- interaction (StiInteractionDataGeom)
- elementIndex (int)
FillRectangle(brush: StiBrush, rect: Rectangle, interaction: StiInteractionDataGeom, elementIndex: int): void
Parameters
- brush (StiBrush)
- rect (Rectangle)
- interaction (StiInteractionDataGeom)
- elementIndex (int)
FillRectangle(brush: StiBrush, x: float, y: float, width: float, height: float, interaction: StiInteractionDataGeom, elementIndex: int): void
Parameters
- brush (StiBrush)
- x (float)
- y (float)
- width (float)
- height (float)
- interaction (StiInteractionDataGeom)
- elementIndex (int)
GetDefaultStringFormat
GetDefaultStringFormat(): StiStringFormatGeom
Returns StiStringFormatGeom
GetGenericStringFormat
GetGenericStringFormat(): StiStringFormatGeom
Returns StiStringFormatGeom
GetPathBounds
GetPathBounds(geoms: List<StiSegmentGeom>): RectangleF
Parameters
- geoms (List<StiSegmentGeom>)
Returns RectangleF
MeasureRotatedString
MeasureRotatedString(text: string, font: StiFontGeom, rect: RectangleF, sf: StiStringFormatGeom, angle: float): RectangleF
Parameters
- text (string)
- font (StiFontGeom)
- rect (RectangleF)
- sf (StiStringFormatGeom)
- angle (float)
Returns RectangleF
MeasureRotatedString(text: string, font: StiFontGeom, rect: RectangleF, sf: StiStringFormatGeom, mode: StiRotationMode, angle: float): RectangleF
Parameters
- text (string)
- font (StiFontGeom)
- rect (RectangleF)
- sf (StiStringFormatGeom)
- mode (StiRotationMode)
- angle (float)
Returns RectangleF
MeasureRotatedString(text: string, font: StiFontGeom, point: PointF, sf: StiStringFormatGeom, mode: StiRotationMode, angle: float, maximalWidth: int): RectangleF
Parameters
- text (string)
- font (StiFontGeom)
- point (PointF)
- sf (StiStringFormatGeom)
- mode (StiRotationMode)
- angle (float)
- maximalWidth (int)
Returns RectangleF
MeasureRotatedString(text: string, font: StiFontGeom, point: PointF, sf: StiStringFormatGeom, mode: StiRotationMode, angle: float): RectangleF
Parameters
- text (string)
- font (StiFontGeom)
- point (PointF)
- sf (StiStringFormatGeom)
- mode (StiRotationMode)
- angle (float)
Returns RectangleF
MeasureString
MeasureString(text: string, font: StiFontGeom): SizeF
Parameters
- text (string)
- font (StiFontGeom)
Returns SizeF
MeasureString(text: string, font: StiFontGeom, width: int, sf: StiStringFormatGeom): SizeF
Parameters
- text (string)
- font (StiFontGeom)
- width (int)
- sf (StiStringFormatGeom)
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
- listGeoms (List<StiSegmentGeom>)
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)