Image
The Image control is used to place bitmaps on a form. Images, unlike bitmaps in 2.x versions of FoxPro, may also participate in events.
Property |
Value |
Meaning |
0 |
Transparent: Objects behind the picture should be visible. |
|
1 |
Opaque, the default: Objects behind the image are obscured. |
|
0 |
Clipped: The image is shown actual size. If the image exceeds the size of the control's width and height, the remainder of the image is cropped. |
|
1 |
Isometric: The image is stretched or shrunken to fit the area of the Image control, without distorting the image's proportions. |
|
2 |
Stretch: The image is distorted to fill the entire width and height of the Image control. |
|
Character |
The path and filename of the picture to be displayed. Visual FoxPro 3.x and 5.x display only BMPs and ICOs natively, and an OLE server is needed for other formats. VFP 6 and later versions support GIFs and JPGs as well as BMPs, ICOs, CURs and ANIs. |
Example |
oForm.AddObject("imgPicture","Image") oForm.imgPicture.Picture = GETPICT() oForm.imgPicture.Visible = .T. |
See Also |