CHMlib Logo Leading Translation Management System for Translation Agencies, Top Translation Management Software for Freelance Translators, Time Tracking Software, Word Count, Character Count and Line Count Software, Computer Assisted Translation Tool for Easy Word Count, Clipboard Character Count Software, User-Friendly Translation Memory Software, Terminology Management Software, Terminology Management Server, Microsoft Glossary Software, Dictionary of Acronyms, Social Network for Translators and Translation Agencies, Acronyms and Abbreviations Search Engine, Russian Translation Lab, Ukrainian Translation Lab.
You are reading help file online using chmlib.com
CrisisHelper - First Aid in Tough Times of World Economic Crisis


_bm0 Rave Reports Developer Reference

TBaseReport. PrintImageRect method

Top  Previous  Next

Declaration

procedure PrintImageRect(X1,Y1,X2,Y2: double; ImageStream: TStream; ImageType: string);

 

Category

Graphics

 

Description

This method will draw ImageStream on the printer canvas stretched or shrunken to fit within the rectangle defined by the points (X1,Y1) and (X2,Y2).

 

See also

TBaseReport Class, CalcGraphicHeight, CalcGraphicWidth, OnDecodeImage, PrintBitmap, StretchDraw

 

Example (Delphi)

with Sender as TBaseReport do begin

Stream := TMemoryStream.Create;

Image := TJPEGImage.Create;

try

   Image.LoadFromFile('image1.jpg');

   Image.SaveToStream(Stream);

   Stream.Position := 0;

   PrintImageRect(1,1,3,3,Stream,'JPG');

finally

   Image.Free;

   Stream.Free

end; {tryf}

end; {with}

 

Example (C++Builder)

TBaseReport *rp = dynamic_cast<TBaseReport*>(Sender);

Stream = new TMemoryStream->Create();

Image = new TJPEGImage->Create();

try {

Image->LoadFromFile("image1.jpg");

Image->SaveToStream(Stream);

Stream->Position = 0;

rp1->PrintImageRect(1,1,3,3,Stream, "JPG");

}

finally {

delete Image;

delete Stream;

}; {tryf}



You are reading help file online using chmlib.com

If you want your help file to be removed or added please send e-mail to chmlibcom@gmail.com