Constructor ImagePlacement
ImagePlacement(Twips, Twips, Twips, Twips, string?, bool)
Initializes an image placement.
public ImagePlacement(Twips x, Twips y, Twips width, Twips height, string? contentType = null, bool behindText = false)
Parameters
ImagePlacement(Twips, Twips, Twips, Twips, string?, bool, Func<Stream>?, int, int, int, int)
Initializes an image placement with a lazy data stream opener and source-crop metadata.
public ImagePlacement(Twips x, Twips y, Twips width, Twips height, string? contentType, bool behindText, Func<Stream>? openData, int cropLeft, int cropTop, int cropRight, int cropBottom)
Parameters
xTwipsyTwipswidthTwipsheightTwipscontentTypestringbehindTextboolopenDataFunc<Stream>cropLeftintcropTopintcropRightintcropBottomint
ImagePlacement(Twips, Twips, Twips, Twips, string?, bool, Func<Stream>?, int, int, int, int, long)
Initializes an image placement with a lazy data stream opener, source-crop metadata and the node key of the picture it draws.
public ImagePlacement(Twips x, Twips y, Twips width, Twips height, string? contentType, bool behindText, Func<Stream>? openData, int cropLeft, int cropTop, int cropRight, int cropBottom, long sourceKey)
Parameters
xTwipsThe left coordinate.
yTwipsThe top coordinate.
widthTwipsThe width.
heightTwipsThe height.
contentTypestringThe image content type, or null.
behindTextboolWhether the image is behind text.
openDataFunc<Stream>Opens the image bytes, or null.
cropLeftintThe left source crop (thousandth-percent).
cropTopintThe top source crop (thousandth-percent).
cropRightintThe right source crop (thousandth-percent).
cropBottomintThe bottom source crop (thousandth-percent).
sourceKeylongThe node key of the picture drawn (see SourceKey), or 0.
ImagePlacement(Twips, Twips, Twips, Twips, string?, bool, Func<Stream>?, int, int, int, int, long, int, bool, bool)
Initializes an image placement that is turned about the centre of its rectangle.
public ImagePlacement(Twips x, Twips y, Twips width, Twips height, string? contentType, bool behindText, Func<Stream>? openData, int cropLeft, int cropTop, int cropRight, int cropBottom, long sourceKey, int rotation, bool flipHorizontal, bool flipVertical)
Parameters
xTwipsThe left coordinate of the picture's own, unrotated rectangle.
yTwipsThe top coordinate of that rectangle.
widthTwipsThe width.
heightTwipsThe height.
contentTypestringThe image content type, or null.
behindTextboolWhether the image is behind text.
openDataFunc<Stream>Opens the image bytes, or null.
cropLeftintThe left source crop (thousandth-percent).
cropTopintThe top source crop (thousandth-percent).
cropRightintThe right source crop (thousandth-percent).
cropBottomintThe bottom source crop (thousandth-percent).
sourceKeylongThe node key of the picture drawn (see SourceKey), or 0.
rotationintThe rotation in 60000ths of a degree, clockwise; any value, reduced to 0..21599999.
flipHorizontalboolWhether the picture is mirrored left to right before it is rotated.
flipVerticalboolWhether the picture is mirrored top to bottom before it is rotated.