Thumbnail Property

Allows in-memory access to the thumbnail for the specified image through the IPictureDisp interface. Read-only IPictureDisp.

expression.Thumbnail (ThumbSize)

*expression   * Required. An expression that returns an Image object.

MiTHUMBNAIL_SIZE

ThumbSize can be one of the following MiTHUMBNAIL_SIZE constants.
MiTHUMB_SIZE_TINY (0)
MiTHUMB_SIZE_SMALL (1)
MiTHUMB_SIZE_MEDIUM (2)
MiTHUMB_SIZE_MAXIMUM (3)
MiTHUMB_SIZE_LARGE (3)

Remarks

For additional information on the IPictureDisp automation interface, please see the "COM" section of the Microsoft® Windows® Platform SDK.

Example

The following example opens a new document and displays the image and the smallest possible thumbnail for the first page in two separate Visual Basic PictureBox controls.

Sub TestImageProperties()

  Dim miDoc As MODI.Document
  Dim miImage As MODI.Image
  
  Set miDoc = New MODI.Document
  miDoc.Create "C:\document1.tif"
  
  Set miImage = miDoc.Images(0)
  
  Set picPicture.Picture = miImage.Picture
  Set picThumbnail.Picture = miImage.Thumbnail(miTHUMB_SIZE_TINY)
  
  Set miImage = Nothing
  Set miDoc = Nothing

End Sub

Applies to | Image Object