x4Trace Documentation v1.0
|
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. | |
Represents an inteface of graphics. Not depend on operating system.
|
virtual |
Draws image.
image | Image to draw. |
x | X position. |
y | Y position. |
width | Width of image. |
height | Height of image. |
|
virtual |
Draws image.
image | Image to draw. |
rectangle | Rectangle of position. |
|
virtual |
Draws line.
pen | Pen. |
x1 | X1 coordinate. |
y1 | Y1 coordinate. |
x2 | X2 coordinate. |
y2 | Y2 coordinate. |
|
virtual |
Draws rectangle.
color | Color. |
rectangle | Rectangle. |
|
virtual |
Draws rectangle.
pen | Pen. |
rectangle | Rectangle. |
|
virtual |
Draws string.
text | Text value. |
font | Font of text. |
color | Color of text. |
rectangle | Position of text. |
alignment | Alignment of text. |
|
virtual |
Fills rectangle.
color | Color. |
rectangle | Rectangle. |
|
virtual |
Measures string.
text | Text. |
font | Font of text. |
width | Maximum width of text. |
alignment | Alignment of text. |
Measures string.
text | Text. |
font | Font of text. |
Exception | When event is empty. |
|
static |
Measures string.
text | Text. |
font | Font of text. |
width | Maximum width of text. |
alignment | Alignment of text. |
Exception | When event is empty. |
|
virtual |
Scales the graphics.
x | X scale. |
y | Y scale. |
|
virtual |
Translate the graphics.
x | X translation. |
y | Y translation. |