MsoFormatPicture

MsoFormatPicture class

Represents the picture format.

class MsoFormatPicture;

Properties

PropertyTypeDescription
topCropInchnumberRepresents the location of the top of the crop rectangle expressed, in unit of inches.
bottomCropInchnumberRepresents the location of the bottom of the crop rectangle expressed, in unit of inches.
leftCropInchnumberRepresents the location of the left of the crop rectangle expressed, in unit of inches.
rightCropInchnumberRepresents the location of the right of the crop rectangle expressed, in unit of inches.
topCropnumberRepresents the location of the top of the crop rectangle expressed, expressed as a ratio of the image’s height.
bottomCropnumberRepresents the location of the bottom of the crop rectangle expressed, expressed as a ratio of the image’s height.
leftCropnumberRepresents the location of the left of the crop rectangle expressed, expressed as a ratio of the image’s width.
rightCropnumberRepresents the location of the right of the crop rectangle expressed, expressed as a ratio of the image’s width.
transparencynumberReturns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear).
transparentColorCellsColorGets and sets the transparent color of the picture.
contrastnumberRepresents the contrast modification for the picture.in unit of percentage.
brightnessnumberRepresents the brightness modification for the picture in unit of percentage.
gammanumberRepresents gamma of the picture.
isBiLevelbooleanIndicates whether this picture should display in two-color black and white.
isGraybooleanIndicates whether this picture should display in grayscale.

Methods

MethodDescription
getHashCode()Gets the hash code.
equals(VObject)

topCropInch

Represents the location of the top of the crop rectangle expressed, in unit of inches.

topCropInch : number;

bottomCropInch

Represents the location of the bottom of the crop rectangle expressed, in unit of inches.

bottomCropInch : number;

leftCropInch

Represents the location of the left of the crop rectangle expressed, in unit of inches.

leftCropInch : number;

rightCropInch

Represents the location of the right of the crop rectangle expressed, in unit of inches.

rightCropInch : number;

topCrop

Represents the location of the top of the crop rectangle expressed, expressed as a ratio of the image’s height.

topCrop : number;

bottomCrop

Represents the location of the bottom of the crop rectangle expressed, expressed as a ratio of the image’s height.

bottomCrop : number;

leftCrop

Represents the location of the left of the crop rectangle expressed, expressed as a ratio of the image’s width.

leftCrop : number;

rightCrop

Represents the location of the right of the crop rectangle expressed, expressed as a ratio of the image’s width.

rightCrop : number;

transparency

Returns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear).

transparency : number;

transparentColor

Gets and sets the transparent color of the picture.

transparentColor : CellsColor;

contrast

Represents the contrast modification for the picture.in unit of percentage.

contrast : number;

Remarks

It is between -100% and 100%. It works same as Excel 2007 or above version.

brightness

Represents the brightness modification for the picture in unit of percentage.

brightness : number;

Remarks

It is between -100% and 100%. It works same as Excel 2007 or above version.

gamma

Represents gamma of the picture.

gamma : number;

isBiLevel

Indicates whether this picture should display in two-color black and white.

isBiLevel : boolean;

isGray

Indicates whether this picture should display in grayscale.

isGray : boolean;

getHashCode()

Gets the hash code.

getHashCode() : number;

equals(VObject)

equals(obj: VObject) : boolean;

Parameters:

ParameterTypeDescription
objVObject