Share via


PictureFormat Object [Publisher 2003 VBA Language Reference]

Multiple objects
PictureFormat

Contains properties and methods that apply to pictures.

Using the PictureFormat Object

Use the PictureFormat property to return a PictureFormat object. The following example sets the brightness, contrast, and color transformation for shape one on the active document and crops 18 points off the bottom of the shape. For this example to work, shape one must be either a picture or an OLE object.

Sub FormatPicture()
    With ActiveDocument.Pages(1).Shapes(1).PictureFormat
        .Brightness = 0.6
        .Contrast = 0.7
        .ColorType = msoPictureGrayscale
        .CropBottom = 18
    End With
End Sub

Properties | Application Property | Brightness Property | ColorModel Property | ColorsInPalette Property | ColorType Property | Contrast Property | CropBottom Property | CropLeft Property | CropRight Property | CropTop Property | EffectiveResolution Property | Filename Property | FileSize Property | HasAlphaChannel Property | HasTransparencyColor Property | Height Property | HorizontalPictureLocking Property | HorizontalScale Property | ImageFormat Property | IsEmpty Property | IsGreyScale Property | IsLinked Property | IsTrueColor Property | LinkedFileStatus Property | OriginalColorsInPalette Property | OriginalFileSize Property | OriginalHasAlphaChannel Property | OriginalHeight Property | OriginalIsTrueColor Property | OriginalResolution Property | OriginalWidth Property | Parent Property | TransparencyColor Property | TransparentBackground Property | VerticalPictureLocking Property | VerticalScale Property | Width Property

Methods | IncrementBrightness Method | IncrementContrast Method | Replace Method

Parent Objects | Shape Object | ShapeRange Collection

Child Objects