Specifies how an image is sized to fit inside a control. Available at design time and run time.
|You must set the object's Picture property before setting Stretch; otherwise, the Stretch setting is disregarded. For more information, see Picture Property.|
Specifies a numeric value indicating how to size an image to fit a control.
The following table contains the values for nType.
0В В В
Clip. The image is clipped to fit the control. (Default)
1В В В
Isometric. The image resizes to fit the control while maintaining its original proportions.
2В В В
Stretch. The image resizes to fit the control, but does not maintain its original proportions.
CREATE FORM myForm NOWAIT oform=_vfp.ActiveForm oform.ADDOBJECT("image1","image") this1=oform.image1 this1.picture= HOME()+"\graphics\bitmaps\assorted\beanie.bmp" this1.stretch=0 this1.height = 50 this1.width = 50