proportionalimage DrawRect property
Return to Introduction  Previous page  Next page
Applies to
acProportionalImage property.  

Declaration
property DrawRect: TRect;  

Description
The DrawRect is the read-only property used to determinate the bounds of rectangle where the picture has been drawn.  

Example
// this code makes the client area size of the form equal to the  
// size of picture, so the picture will exactly fit to the form size  
with acProportionalImage1.DrawRect do  
 begin  
  ClientWidth := Right - Left;  
  ClientHeight := Bottom - Top;  
 end;  

See also
Proportional and ControlCanvas properties.