Overview | Methods | This Package | All Packages
Adds one or more images derived from the specified bitmap or icon to the image list.
Syntax
public int addImage( Image value )
public int addImage( Bitmap image, Color maskColor )
Parameters
value
An Image object that represents the image(s) to add. If you specify an image whose size is greater than the size specified in the imageSize property, multiple images may be added to the image list.
image
The Bitmap object that represents the the image(s) to add. If you specify an image whose size is greater than the size specified in the imageSize property, multiple images may be added to the image list.
maskColor
A Color object that represents the mask color for the image. If the value of the useMask property is false, this parameter is ignored.
Return Value
Returns the zero-based index of the first image added.
Exceptions
WFCInvalidArgumentException thrown if the Image object specified for the value parameter is null. WFCException thrown if the dimensions of the Image object specified for the value parameter are less than the dimensions specified in the imageSize property, if the specified image is not a bitmap or an icon, or if the image cannot be added to the image list.
See Also removeImage