PictureFormat.IsTrueColor Property
Publisher Developer Reference |
Returns an MsoTriState constant indicating whether the specified picture or OLE object contains color data of 24 bits per channel or greater. Read-only.
Syntax
expression.IsTrueColor
expression A variable that represents an PictureFormat object.
Return Value
MsoTriState
Remarks
For pictures that are not TrueColor, use the ColorsInPalette property of the PictureFormat object to determine the number of colors in the picture's palette.
The IsTrueColor property value can be one of the MsoTriState constants declared in the Microsoft Office type library and shown in the following table.
Constant | Description |
---|---|
msoFalse | The specified picture does not contain color data of 24 bits per channel or greater. |
msoTriStateMixed | Return value indicating a combination of msoTrue and msoFalse for the specified shape range. |
msoTrue | The specified picture contains color data of 24 bits per channel or greater. |
Example
The following example tests each picture in the active document and prints whether the picture is TrueColor. If it is not TrueColor, the example prints how many colors are in the picture's palette.
Visual Basic for Applications |
---|
|
See Also