Adds the specified image to the collection, using the specified color to generate the mask.


object.Add( filename, color )


filename - a required string expression specifying the fully qualified filename of the image to be added into the collection.

color - an optional variant expression specifying one of the Color values.

Return Value

The index of the newly added image or -1 if the the image could not be added.

See Also

Applies To: Images

The CHM file was converted to HTML by chm2web software.