Units documentation

rpvgraphutills.pas

Description

This unit implements CLX to GDI conversion routines, this includes page size conversion, color, font styles, also other functions implemented by the CLX library but not in VCL.

Types

Name Description
TGDIPageSize Record containing information for Windows GDI page size

Components and classes

Name Base class Description
TPrinterForm TObject Object with form information in Windows format (Form_info_1)

Functions

Declaration Description
procedure DrawBitmap (Destination:TCanvas; Bitmap:TBitmap; Rec,RecSrc:TRect); Draws a bitmap
procedure DrawBitmapMosaic (canvas:TCanvas; rec:TRect; bitmap:TBitmap); Draws a bitmap with mosaic effect
procedure DrawBitmapMosaicSlow (canvas:TCanvas; rec:Trect; bitmap:TBitmap); The same but only for printer and screen
function GetPhysicPageSizeTwips:TPoint; Page size
function GetPageSizeTwips:TPoint; Page size
function GetPageMarginsTWIPS:TRect; Page margins
function QtPageSizeToGDIPageSize (qtsize:TPageSizeQt):TGDIPageSize; Page size conversion
function FindIndexPaperName (device, name:string):integer; Printer index
procedure SetCurrentPaper (apapersize:TGDIPageSize); Get current paper
procedure SendControlCodeToPrinter (S: string); Sends raw data to printer
procedure JPegStreamToBitmapStream (AStream:TMemoryStream); Converts a Jpeg to bitmap