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:

PartDescription
objectAn expression evaluating to an object of type McDataManager.
pdbnodeIcoRequired. A McDBNode object. The McDBNode reference that will store the picture in the Icon property.
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.

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, 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.