You are reading help file online using chmlib.com
|
Rave Reports Developer Reference TBaseReport. CalcGraphicWidth method |
Top Previous Next |
Declaration function CalcGraphicWidth(Height: double; Graphic: TGraphic): double;
Category
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
|