PictureFormat.ColorType Property

Publisher Developer Reference

Returns or sets an MsoPictureColorType constant indicating the type of color transformation applied to the specified picture or OLE object. Read/write.

Syntax

expression.ColorType

expression   A variable that represents a PictureFormat object.

Return Value
MsoPictureColorType

Remarks

The ColorType property value can be one of the MsoPictureColorType constants declared in the Microsoft Office type library.

Example

This example sets the color transformation to grayscale for the first shape in the active publication. The shape must be either a picture or an OLE object.

Visual Basic for Applications
  ActiveDocument.Pages(1).Shapes(1).PictureFormat _
    .ColorType = msoPictureGrayScale

See Also