/// <summary> /// Initializes a new instance of the <see cref="PrintableImageObject"/> class. /// </summary> /// <param name="image">The image.</param> /// <param name="x">The x.</param> /// <param name="y">The y.</param> public PrintableImageObject(Image image, int x, int y) { this.image = image; this.x = x; this.y = y; this.constrType = constructorType.Imagexintyint; }
public PrintableTextObject(string text, Font font, Brush brush, float x, float y) { this.text = text; this.font = font; this.brush = brush; this.x = x; this.y = y; this.constrType = constructorType.TextFontBrushXY; }
public PrintableLineObject(Pen pen, int x1, int y1, int x2, int y2) { this.pen = pen; this.xint1 = x1; this.yint1 = y1; this.xint2 = x2; this.yint2 = y2; this.constrType = constructorType.PenXint1Yint1Xint2Yint2; }
public PrintableFillRectangleObject(Brush brush,int x,int y,int width,int height) { this.brush = brush; this.x = x; this.y = y; this.width = width; this.height = height; this.constrType = constructorType.BrushXintYintWidthintHeightint; }
/// <summary> /// Initializes a new instance of the <see cref="PrintableRectangleObject"/> class. /// </summary> /// <param name="pen">The pen.</param> /// <param name="x">The x.</param> /// <param name="y">The y.</param> /// <param name="width">The width.</param> /// <param name="height">The height.</param> public PrintableRectangleObject(Pen pen, int x, int y, int width, int height) { this.pen = pen; this.x = x; this.y = y; this.width = width; this.height = height; this.constrType = constructorType.PenXintYintWidthintHeightint; }