Description

Create a thumbnail for a Picture or McImage and return it as a Picture (DIB) or McImage.

Return Type

An IUnknown object.   Either a new McImage or Picture Object reference when successful.
Failure Returns Nothing.

Failure conditions:
* invalid parameter

Syntax

object.MakeIconPicture (pSrcPictureOrMcImage, eIconType, bReturnMcImageInsteadofPicture)

The MakeIconPicture Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDataManager.
pSrcPictureOrMcImageRequired. An IUnknown object. A COM object reference exposing a Picture or a McImage with the source data for the Icon.
eIconTypeRequired. A mcDBIconType enumeration, as described in settings. The instance of the Icon stored by pdbnodeIco.
bReturnMcImageInsteadofPictureRequired. A Boolean value. When non-zero a McImage reference will be returned instead of a Picture (DIB).

Settings

The settings for eIconType are:

ConstantValueDescription
 mcdbSmallIcon0
 mcdbLargeIcon1
 mcdbExpandedIcon2
 mcdbSelectedIcon3

Remarks

The given Picture or McImage will scaled to the correct size without changing the aspect ratio and placed on the thumbnail picture. The thumbnail will be stored using standard jpeg compression to be compatible with web browser access. Rendering the returned DIB to a DDB/BMP or non-JPG compressed DIB is not recommended when a web interface may be used. The stream contents may be transferred to IPersist consumer such as the McDBType::Icon property with the McImage.File property.