Interface IDigitalClockRenderer
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public interface IDigitalClockRenderer
Methods
DrawColon(Graphics, Font, Brush, Single, Single)
Drawing Digital clock colon
Declaration
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, Int32, Font, Brush, Brush, Single, Single)
Declaration
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
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
void DrawDigitalClockFrame(Graphics g, Image newImage, Clock clock)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Graphics used for drawing the text and frame |
System.Drawing.Image | newImage | Image for digital clock frame |
Clock | clock |
DrawDigits(Graphics, String, DateTime, Font, Brush, Brush, PointF, Boolean, Boolean)
Declaration
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
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 |
FillPolygon(Graphics, Point[], Font, Brush, Single, Single)
Drawing Digital clock polygon
Declaration
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
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 |