Class ImagePlacement
Positioned image primitive (populated in a later phase).
public sealed class ImagePlacement : ILayoutPrimitive
- Inheritance
-
ImagePlacement
- Implements
- Inherited Members
Constructors
- ImagePlacement(Twips, Twips, Twips, Twips, string?, bool)
Initializes an image placement.
- 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.
Properties
- BehindText
Gets whether the image is behind text.
- ContentType
Gets the image content type, or null.
- CropBottom
Gets the bottom source crop in thousandth-percent units (0..100000).
- CropLeft
Gets the left source crop in thousandth-percent units (0..100000).
- CropRight
Gets the right source crop in thousandth-percent units (0..100000).
- CropTop
Gets the top source crop in thousandth-percent units (0..100000).
- HasData
Gets whether image bytes are attached, so that OpenData() will succeed.
- Height
Gets the image height in twips.
- Width
Gets the image width in twips.
- X
Gets the left coordinate in twips.
- Y
Gets the top coordinate in twips.
Methods
- OpenData()
Opens a read-only stream over the image bytes.