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. CalcGraphicWidth method

Top  Previous  Next

Declaration

function CalcGraphicWidth(Height: double; Graphic: TGraphic): double;

 

Category

Graphics

 

Description

This method will calculate and return the value for the new Width of the Graphic based on the Height value while maintaining the original ratio of the Graphic. This can be used for both bitmaps and metafiles.

 

See also

TBaseReport Class, CalcGraphicHeight, PrintBitmap, PrintBitmapRect, StretchDraw

 

Example (Delphi)

Bitmap := TBitmap.Create;

Bitmap.LoadFromFile('RpDEMO.BMP');

PrintBitmapRect(X1, Y1,

              X1 + CalcGraphicWidth(3.0,Bitmap), Y1 + 3.0,Bitmap);

Bitmap.Free;

 

Example (C++Builder)

Graphics::TBitmap* Bitmap;

Bitmap = new Graphics::TBitmap();

Bitmap->LoadFromFile("RpDEMO.BMP");

rp1->PrintBitmapRect(X1, Y1,

              X1 + rp1->CalcGraphicHeight(3.0,Bitmap),3.0,Bitmap);

delete Bitmap;



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