Picture

constructor(bytes: ByteArray, format: PictureFormat?, width: Int?, height: Int?, goalWidthTwips: Int?, goalHeightTwips: Int?, scaleXPercent: Int = 100, scaleYPercent: Int = 100)(source)

Parameters

bytes

the image data, from the group's hex text or its \binN blob.

format

the declared encoding, or null when the group names none the parser knows.

width

the raw \picwN source width.

height

the raw \pichN source height.

goalWidthTwips

the \picwgoalN rendered width in twips, before scaling.

goalHeightTwips

the \pichgoalN rendered height in twips, before scaling.

scaleXPercent

the \picscalexN horizontal scale. Word keeps the goals at the picture's original size and records a user resize here.

scaleYPercent

the \picscaleyN vertical scale, as for scaleXPercent.