Defines the image object using an OLE Picture object (IPictureDisp interface).
| Get | |||
| VB | Set pPictureDisp = object.Picture As IPictureDisp | ||
| Put | |||
| VB | object.Picture = pPictureDisp As IPictureDisp | ||
| PutRef | |||
| VB | Set object.Picture = pPictureDisp As IPictureDisp |
object
pPictureDisp
Defines the image object using an OLE Picture object.
The Picture property defines the image object using an OLE Picture object (IPictureDisp interface).
If the image is based on a bitmap, bitmap transparency is used.
The SftPictureObject.Type property is set to sftTypeIDispatch. The SftPictureObject.ActualHeight and SftPictureObject.ActualWidth properties reflect the image size.
This example assigns an image from a PictureBox to the first tab.
Private Sub Form_Load()
With SftTabs1.Direct
Set .Tab(0).Image.Picture = Picture1.Picture
End With
End SubSee Also SftPictureObject Object | Object Hierarchy