Class DigitalClockRenderer
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class DigitalClockRenderer : IDigitalClockRenderer
Constructors
DigitalClockRenderer()
Declaration
public DigitalClockRenderer()
Methods
DrawColon(Graphics, Font, Brush, Single, Single)
Drawing Digital clock colon
Declaration
public float DrawColon(Graphics graphics, Font font, Brush brush, float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | graphics | Graphics used for drawing the text |
| System.Drawing.Font | font | Font or the digital text |
| System.Drawing.Brush | brush | brush used for drawing the highlighted lines |
| System.Single | x | x points for drawing the text |
| System.Single | y | y points for drawing the text |
Returns
| Type |
|---|
| System.Single |
DrawDigit(Graphics, Char, Font, Brush, Brush, Single, Single)
Declaration
public float DrawDigit(Graphics graphics, char num, Font font, Brush brush, Brush brushLight, float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | graphics | |
| System.Char | num | |
| System.Drawing.Font | font | |
| System.Drawing.Brush | brush | |
| System.Drawing.Brush | brushLight | |
| System.Single | x | |
| System.Single | y |
Returns
| Type |
|---|
| System.Single |
DrawDigit(Graphics, Int32, Font, Brush, Brush, Single, Single)
Declaration
public float DrawDigit(Graphics graphics, int num, Font font, Brush brush, Brush brushLight, float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | graphics | |
| System.Int32 | num | |
| System.Drawing.Font | font | |
| System.Drawing.Brush | brush | |
| System.Drawing.Brush | brushLight | |
| System.Single | x | |
| System.Single | y |
Returns
| Type |
|---|
| System.Single |
DrawDigitalClockBorder(Graphics, Clock)
Drawing Digital clock border
Declaration
public void DrawDigitalClockBorder(Graphics g, Clock clock)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | g | Graphics used for drawing the text |
| Clock | clock |
DrawDigitalClockFrame(Graphics, Image, Clock)
Drawing Digital clock background frame
Declaration
public virtual void DrawDigitalClockFrame(Graphics g, Image newImage, Clock clock)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | g | Graphics used for drawing the text |
| System.Drawing.Image | newImage | Image for digital clock frame |
| Clock | clock | clock used for drawing the digital clock depends on respected properties |
DrawDigits(Graphics, String, DateTime, Font, Brush, Brush, PointF, Boolean, Boolean)
Declaration
public void DrawDigits(Graphics graphics, string text, DateTime CustomTime, Font font, Brush brush, Brush brushLight, PointF textPoint, bool showAMPM, bool isAM)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | graphics | |
| System.String | text | |
| System.DateTime | CustomTime | |
| System.Drawing.Font | font | |
| System.Drawing.Brush | brush | |
| System.Drawing.Brush | brushLight | |
| System.Drawing.PointF | textPoint | |
| System.Boolean | showAMPM | |
| System.Boolean | isAM |
DrawDot(Graphics, Font, Brush, Single, Single)
Drawing Digital clock Dot
Declaration
public float DrawDot(Graphics graphics, Font font, Brush brush, float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | graphics | Graphics used for drawing the text |
| System.Drawing.Font | font | Font or the digital text |
| System.Drawing.Brush | brush | brush used for drawing the highlighted lines |
| System.Single | x | x points for drawing the text |
| System.Single | y | y points for drawing the text |
Returns
| Type |
|---|
| System.Single |
DrawRoundRect(Graphics, Pen, Single, Single, Single, Single, Single)
Drawing Digital rounded frame
Declaration
public void DrawRoundRect(Graphics g, Pen p, float x, float y, float width, float height, float radius)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | g | Graphics used for drawing the digital clock border |
| System.Drawing.Pen | p | p used for drawing the digial clock border |
| System.Single | x | begining x-co-ordinate points for the digital clock |
| System.Single | y | begining y-co-ordinate points for the digital clock |
| System.Single | width | width used drawing the rounded border |
| System.Single | height | height used drawing the rounded border |
| System.Single | radius | radius used drawing the rounded border |
DrawSlace(Graphics, Font, Brush, Single, Single)
Drawing Digital clock Dot
Declaration
[Obsolete("DrawSlace is deprecated, please use DrawSlice instead.")]
public float DrawSlace(Graphics graphics, Font font, Brush brush, float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | graphics | Graphics used for drawing the text |
| System.Drawing.Font | font | Font or the digital text |
| System.Drawing.Brush | brush | brush used for drawing the highlighted lines |
| System.Single | x | x points for drawing the text |
| System.Single | y | y points for drawing the text |
Returns
| Type |
|---|
| System.Single |
DrawSlice(Graphics, Font, Brush, Single, Single)
Drawing Digital clock Dot
Declaration
public float DrawSlice(Graphics graphics, Font font, Brush brush, float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | graphics | Graphics used for drawing the text |
| System.Drawing.Font | font | Font or the digital text |
| System.Drawing.Brush | brush | brush used for drawing the highlighted lines |
| System.Single | x | x points for drawing the text |
| System.Single | y | y points for drawing the text |
Returns
| Type |
|---|
| System.Single |
DrawSpace(Graphics, Font, Brush, Single, Single)
Drawing Digital clock Dot
Declaration
public float DrawSpace(Graphics graphics, Font font, Brush brush, float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | graphics | Graphics used for drawing the text |
| System.Drawing.Font | font | Font or the digital text |
| System.Drawing.Brush | brush | brush used for drawing the highlighted lines |
| System.Single | x | x points for drawing the text |
| System.Single | y | y points for drawing the text |
Returns
| Type |
|---|
| System.Single |
FillPolygon(Graphics, Point[], Font, Brush, Single, Single)
Drawing Digital clock polygon
Declaration
public void FillPolygon(Graphics graphics, Point[] polygonPoints, Font font, Brush brush, float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | graphics | Graphics used for drawing the text |
| System.Drawing.Point[] | polygonPoints | polygonPoints used for drawing the colon |
| System.Drawing.Font | font | Font for the digital text |
| System.Drawing.Brush | brush | brush used for drawing the colon |
| System.Single | x | x co-ordinate point for colon |
| System.Single | y | y co-ordinate point for colon |
GetRoundedregion(Single, Single, Single, Single, Single)
Get rounded frame
Declaration
public GraphicsPath GetRoundedregion(float x, float y, float width, float height, float radius)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | x | begining x-co-ordinate points for the digital clock |
| System.Single | y | begining y-co-ordinate points for the digital clock |
| System.Single | width | width used for measuring rounded region width |
| System.Single | height | height used for measuring rounded region height |
| System.Single | radius | radius of the rounded region |
Returns
| Type |
|---|
| System.Drawing.Drawing2D.GraphicsPath |
GetStringSize(Graphics, String, Font)
Get Digital text size
Declaration
public SizeF GetStringSize(Graphics graphics, string text, Font font)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | graphics | graphics used for measuring the text size |
| System.String | text | text used for measuring digital clock width and height |
| System.Drawing.Font | font | font used measuring the digital clock size |
Returns
| Type |
|---|
| System.Drawing.SizeF |