x4Trace Documentation v1.0
Loading...
Searching...
No Matches
IGraphics.GInterface.IGraphics Class Reference

Represents an inteface of graphics. Not depend on operating system. More...

Public Member Functions

virtual void DrawRectangle (IColor color, IRectangle rectangle)
 Draws rectangle.
 
virtual void DrawRectangle (IPen pen, IRectangle rectangle)
 Draws rectangle.
 
virtual void FillRectangle (IColor color, IRectangle rectangle)
 Fills rectangle.
 
virtual void DrawImage (object image, IRectangle rectangle)
 Draws image.
 
virtual void DrawImage (object image, int x, int y, int width, int height)
 Draws image.
 
virtual void DrawString (string text, IFont font, IColor color, IRectangle rectangle, IStringAlignment alignment)
 Draws string.
 
virtual void DrawLine (IPen pen, int x1, int y1, int x2, int y2)
 Draws line.
 
virtual ISize MeasureString (string text, IFont font, int width, IStringAlignment alignment)
 Measures string.
 
virtual void ScaleTransform (float x, float y)
 Scales the graphics.
 
virtual void TranslateTransform (float x, float y)
 Translate the graphics.
 

Static Public Member Functions

static ISize MeasureString1 (string text, IFont font, int width, IStringAlignment alignment)
 Measures string.
 
static ISize MeasureString1 (string text, IFont font)
 Measures string.
 

Events

static MeasureStringEvt1 MeasureStringEvt1
 Event of measure string.
 
static MeasureStringEvt2 MeasureStringEvt2
 Event of measure string.
 

Detailed Description

Represents an inteface of graphics. Not depend on operating system.

Member Function Documentation

◆ DrawImage() [1/2]

virtual void IGraphics.GInterface.IGraphics.DrawImage ( object image,
int x,
int y,
int width,
int height )
virtual

Draws image.

Parameters
imageImage to draw.
xX position.
yY position.
widthWidth of image.
heightHeight of image.

◆ DrawImage() [2/2]

virtual void IGraphics.GInterface.IGraphics.DrawImage ( object image,
IRectangle rectangle )
virtual

Draws image.

Parameters
imageImage to draw.
rectangleRectangle of position.

◆ DrawLine()

virtual void IGraphics.GInterface.IGraphics.DrawLine ( IPen pen,
int x1,
int y1,
int x2,
int y2 )
virtual

Draws line.

Parameters
penPen.
x1X1 coordinate.
y1Y1 coordinate.
x2X2 coordinate.
y2Y2 coordinate.

◆ DrawRectangle() [1/2]

virtual void IGraphics.GInterface.IGraphics.DrawRectangle ( IColor color,
IRectangle rectangle )
virtual

Draws rectangle.

Parameters
colorColor.
rectangleRectangle.

◆ DrawRectangle() [2/2]

virtual void IGraphics.GInterface.IGraphics.DrawRectangle ( IPen pen,
IRectangle rectangle )
virtual

Draws rectangle.

Parameters
penPen.
rectangleRectangle.

◆ DrawString()

virtual void IGraphics.GInterface.IGraphics.DrawString ( string text,
IFont font,
IColor color,
IRectangle rectangle,
IStringAlignment alignment )
virtual

Draws string.

Parameters
textText value.
fontFont of text.
colorColor of text.
rectanglePosition of text.
alignmentAlignment of text.

◆ FillRectangle()

virtual void IGraphics.GInterface.IGraphics.FillRectangle ( IColor color,
IRectangle rectangle )
virtual

Fills rectangle.

Parameters
colorColor.
rectangleRectangle.

◆ MeasureString()

virtual ISize IGraphics.GInterface.IGraphics.MeasureString ( string text,
IFont font,
int width,
IStringAlignment alignment )
virtual

Measures string.

Parameters
textText.
fontFont of text.
widthMaximum width of text.
alignmentAlignment of text.
Returns
Result size.

◆ MeasureString1() [1/2]

static ISize IGraphics.GInterface.IGraphics.MeasureString1 ( string text,
IFont font )
static

Measures string.

Parameters
textText.
fontFont of text.
Returns
Result size.
Exceptions
ExceptionWhen event is empty.

◆ MeasureString1() [2/2]

static ISize IGraphics.GInterface.IGraphics.MeasureString1 ( string text,
IFont font,
int width,
IStringAlignment alignment )
static

Measures string.

Parameters
textText.
fontFont of text.
widthMaximum width of text.
alignmentAlignment of text.
Returns
Result size.
Exceptions
ExceptionWhen event is empty.

◆ ScaleTransform()

virtual void IGraphics.GInterface.IGraphics.ScaleTransform ( float x,
float y )
virtual

Scales the graphics.

Parameters
xX scale.
yY scale.

◆ TranslateTransform()

virtual void IGraphics.GInterface.IGraphics.TranslateTransform ( float x,
float y )
virtual

Translate the graphics.

Parameters
xX translation.
yY translation.

The documentation for this class was generated from the following file: