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: |
| object | An expression evaluating to an object of type McDataManager. | | pSrcPictureOrMcImage | Required. An IUnknown object. A COM object reference exposing a Picture or a McImage with the source data for the Icon. | | eIconType | Required. A mcDBIconType enumeration, as described in settings. The instance of the Icon stored by pdbnodeIco. | | bReturnMcImageInsteadofPicture | Required. A Boolean value. When non-zero a McImage reference will be returned instead of a Picture (DIB). | Settings The settings for eIconType are:
 | mcdbSmallIcon | 0 | |
 | mcdbLargeIcon | 1 | |
 | mcdbExpandedIcon | 2 | |
 | mcdbSelectedIcon | 3 | |
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.
|