Description Create a thumbnail for a Picture or McImage and store it in a McDBNode Icon property.
-
Return Type
-
A Boolean value. True when the Icon property is successfully set. Failure Returns False. Failure conditions: * invalid parameter * security or accessibility problem
-
Syntax
-
object.SetNodeIcon (pdbnodeIco, pSrcPictureOrMcImage, eIconType)
The SetNodeIcon Method syntax has these parts: |
| object | An expression evaluating to an object of type McDataManager. | | pdbnodeIco | Required. A McDBNode object. The McDBNode reference that will store the picture in the Icon property. | | 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. | 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, placed on the thumbnail picture and stored to the McDBNode::Icon property.
The thumbnail will be stored using standard jpeg compression to be compatible with web browser access.
|