IGxDocumentPrinter.Graphics

Syntax

Graphics: IGxGraphics;

Description

The Graphics property returns the printer drawing context.

Example

Sub Main;

Var

Image: IGxImage;

Printer: IGxDocumentPrinter;

Begin

Image := GxBitmap.FromFile("C:\Image.bmp");

Printer := GxPrinters.DefaultPrinter As IGxDocumentPrinter;

Printer.StartDocument("Bmp_Test");

Printer.NewPage;

Printer.Graphics.DrawImageTransparent(Image, Null, Null, Null);

Printer.EndDocument;

End Sub Main;

After executing the example the image that is loaded from the Image.bmp file is printed.

See also:

IGxDocumentPrinter