Table of Contents

Constructor ImagePlacement

Namespace
DocWright.Core.Rendering
Assembly
DocWright.Core.dll

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

x Twips
y Twips
width Twips
height Twips
contentType string
behindText bool

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

x Twips
y Twips
width Twips
height Twips
contentType string
behindText bool
openData Func<Stream>
cropLeft int
cropTop int
cropRight int
cropBottom int

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

x Twips

The left coordinate.

y Twips

The top coordinate.

width Twips

The width.

height Twips

The height.

contentType string

The image content type, or null.

behindText bool

Whether the image is behind text.

openData Func<Stream>

Opens the image bytes, or null.

cropLeft int

The left source crop (thousandth-percent).

cropTop int

The top source crop (thousandth-percent).

cropRight int

The right source crop (thousandth-percent).

cropBottom int

The bottom source crop (thousandth-percent).

sourceKey long

The 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

x Twips

The left coordinate of the picture's own, unrotated rectangle.

y Twips

The top coordinate of that rectangle.

width Twips

The width.

height Twips

The height.

contentType string

The image content type, or null.

behindText bool

Whether the image is behind text.

openData Func<Stream>

Opens the image bytes, or null.

cropLeft int

The left source crop (thousandth-percent).

cropTop int

The top source crop (thousandth-percent).

cropRight int

The right source crop (thousandth-percent).

cropBottom int

The bottom source crop (thousandth-percent).

sourceKey long

The node key of the picture drawn (see SourceKey), or 0.

rotation int

The rotation in 60000ths of a degree, clockwise; any value, reduced to 0..21599999.

flipHorizontal bool

Whether the picture is mirrored left to right before it is rotated.

flipVertical bool

Whether the picture is mirrored top to bottom before it is rotated.