PictureFormat Object
PictureFormat Object
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
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