PictureFormat Object Members
Publisher Developer Reference |
Contains properties and methods that apply to pictures.
Methods
Name | Description | |
---|---|---|
IncrementBrightness | Changes the brightness of the picture by the specified amount. | |
IncrementContrast | Changes the contrast of the picture by the specified amount. | |
Recolor | Changes the color of a picture in a publication. | |
Replace | Replaces the specified picture. Returns Nothing. | |
RestoreOriginalColors | Restores the original colors of a picture that has been recolored. |
Properties
Name | Description | |
---|---|---|
Application | Used without an object qualifier, this property returns an Application object that represents the current instance of Publisher. Used with an object qualifier, this property returns an Application object that represents the creator of the specified object. When used with an OLE Automation object, it returns the object's application. | |
Brightness | Returns or sets a Single indicating the brightness of the specified picture or OLE object. The value for this property must be a number from 0.0 (dimmest) to 1.0 (brightest). Read/write. | |
ColorModel | Returns a PbColorModel constant that represents the color model of the picture. Read-only. | |
ColorsInPalette | Returns a Long that represents the number of colors in the picture's palette. Read-only. | |
ColorType | Returns or sets an MsoPictureColorType constant indicating the type of color transformation applied to the specified picture or OLE object. Read/write. | |
Contrast | Returns or sets a Single indicating the contrast for the specified picture or OLE object. The value for this property must be a number from 0.0 (the least contrast) to 1.0 (the greatest contrast). Read/write. | |
CropBottom | Returns or sets a Variant indicating the amount by which the bottom edge of a picture or OLE object is cropped. Read/write. | |
CropLeft | Returns or sets a Variant indicating the amount by which the left edge of a picture or OLE object is cropped. Read/write. | |
CropRight | Returns or sets a Variant indicating the amount by which the right edge of a picture or OLE object is cropped. Read/write. | |
CropTop | Returns or sets a Variant indicating the amount by which the top edge of a picture or OLE object is cropped. Read/write. | |
EffectiveResolution | Returns a Long that represents, in dots per inch (dpi), the effective resolution of the picture. Read-only. | |
Filename | Returns a String that represents the file name of the specified picture or OLE object. Read-only. | |
FileSize | Returns a Long that represents, in bytes, the size of the picture or OLE object as it appears in the specified publication. Read-only. | |
HasAlphaChannel | Returns an MsoTriState constant indicating whether the specified picture contains an alpha channel. Read-only. | |
HasTransparencyColor | Returns a Boolean that indicates whether a transparency color has been applied to the specified picture. Read-only. | |
Height | Returns a Variant that represents the height, in points, of the specified picture or OLE object. Read-only. | |
HorizontalPictureLocking | Returns or sets a PbHorizontalPictureLocking constant indicating where newly inserted pictures appear in relation to the specified frame. Read/write. | |
HorizontalScale | Returns a Long that represents the scaling of the picture along its horizontal axis. The scaling is expressed as a percentage (for example, 200 equals 200% scaling). Read-only. | |
ImageFormat | Returns a PbImageFormat constant that represents the image format of a picture as determined by Microsoft® Windows® Graphics Device Interface (GDI+). Read-only. | |
IsEmpty | Returns a MsoTriState constant that represents whether the specified shape is an empty picture frame. Read-only. | |
IsGreyScale | Returns a MsoTriState constant that indicates whether the picture is a greyscale image. Read-only. | |
IsLinked | Returns a MsoTriState constant indicating whether the specified picture is a linked picture or OLE object. Read-only. | |
IsRecolored | Returns True if the image represented by the parent PictureFormat object has been recolored, either in the user interface or by using the PictureFormat.Recolor method. Read-only. | |
IsTrueColor | Returns an MsoTriState constant indicating whether the specified picture or OLE object contains color data of 24 bits per channel or greater. Read-only. | |
LeaveBlackAsBlack | Returns True if, while recoloring, the black portion of the original image should be left as black. Read-only. | |
LinkedFileStatus | Returns a PbLinkedFileStatus constant that indicates the status of the file linked to the specified picture. Read-only. | |
OriginalColorsInPalette | Returns a Long that represents the number of colors in the specified linked picture's palette. Read-only. | |
OriginalFileSize | Returns a Long representing the size, in bytes, of the linked picture or OLE object. Read-only. | |
OriginalHasAlphaChannel | Returns an MsoTriState constant depending on whether the original, linked picture contains an alpha channel. Read-only. | |
OriginalHeight | Returns a Variant representing the height, in points, of the specified linked picture or OLE object. Read-only. | |
OriginalIsTrueColor | Returns an MsoTriState constant indicating whether the specified linked picture or OLE object contains color data of 24 bits per channel or greater. Read-only. | |
OriginalResolution | Returns a Long that represents, in dots per inch (dpi), the resolution at which the linked picture was originally scanned. Read-only. | |
OriginalWidth | Returns a Variant that represents, in points, the width of the specified linked picture or OLE object. Read-only. | |
Parent | Returns the parent object of the specified PictureFormat object. Read-only. | |
RecoloredPictureColor | Returns the color that has been applied to the image represented by the parent PictureFormat object. Read-only. | |
TransparencyColor | Returns or sets an MsoRGBType constant that represents the transparency color. Read/write. | |
TransparentBackground | Returns or sets an MsoTriState constant indicating whether the parts of the specified picture that are defined as the transparent color appear transparent. Read/write. | |
VerticalPictureLocking | Returns or sets a PbVerticalPictureLocking constant indicating where newly inserted pictures appear in relation to the specified frame. Read/write. | |
VerticalScale | Returns a Long that represents the scaling of the picture along its vertical axis. The scaling is expressed as a percentage (for example, 200 equals 200% scaling). Read-only. | |
Width | Returns a Variant that represents the width, in points, of the specified picture. Read-only. |