Class PictureFormat (PowerPoint VBA)

Contains properties and methods that apply to pictures and OLE objects.

The classes ChartFormat, Shape and TableBackground. give access to class PictureFormat


Dim pft as PictureFormat
Set pft = ActiveWindow.RangeFromPoint.PictureFormat

Methods

IncrementBrightness - Changes the brightness of the picture by the specified amount.

IncrementContrast - Changes the contrast of the picture by the specified amount.

Properties

Brightness returns or sets the brightness of the specified picture or OLE object.

ColorType returns or sets the type of color transformation applied to the specified picture or OLE object.

Contrast returns or sets the contrast for the specified picture or OLE object.

Crop returns or sets the number of points that are cropped off the specified picture or OLE object.

CropBottom returns or sets the number of points that are cropped off the bottom of the specified picture or OLE object.

CropLeft returns or sets the number of points that are cropped off the left side of the specified picture or OLE object.

CropRight returns or sets the number of points that are cropped off the right side of the specified picture or OLE object.

CropTop returns or sets the number of points that are cropped off the top of the specified picture or OLE object.

TransparencyColor returns or sets the transparent color for the specified picture as a red-green-blue (RGB) value.

TransparentBackground determines whether parts of the picture that are the color defined as the transparent color appear transparent. Applies to bitmaps only.