PictureFormat.OriginalColorsInPalette Property
Publisher Developer Reference |
Returns a Long that represents the number of colors in the specified linked picture's palette. Read-only.
Syntax
expression.OriginalColorsInPalette
expression A variable that represents an PictureFormat object.
Return Value
Long
Remarks
This property only applies to linked pictures or OLE objects that are not TrueColor (that is, they contain color data of less than 24 bits per channel.) Returns "Permission Denied" for shapes representing embedded or pasted pictures and OLE objects, or linked pictures that are TrueColor.
Use either of the following properties to determine whether a shape represents a linked picture:
- The Type property of the Shape object
- The IsLinked property of the PictureFormat object
Use the OriginalIsTrueColor property to determine whether a linked picture contains color data of 24 bits per channel or greater.
Example
The following example returns a list of all pictures in the active publication that are not TrueColor. The number of colors in each picture's palette is returned, and if the picture is linked and the linked picture is not TrueColor, the number of colors in its palette is also returned.
Visual Basic for Applications |
---|
|
See Also