Class
OfficeDrawingImage
OfficeIMO.Drawing
Positioned image element inside an OfficeDrawing canvas.
Inheritance
- OfficeDrawingElement
- OfficeDrawingImage
Usage
Explore 2 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Property OfficeDrawing.Images
- Method OfficeDrawingImage.CreateWithInterpolation
Constructors
public OfficeDrawingImage(byte[] bytes, string? contentType, OfficeImageProjection projection, string? alternativeText = null, double opacity = 1) #Creates an image drawing element.
Parameters
- bytes byte[]
- Embedded source image bytes.
- contentType string?
- Optional MIME content type.
- projection OfficeIMO.Drawing.OfficeImageProjection
- Destination placement, crop, rotation, and flip settings.
- alternativeText string? = null
- Optional semantic label used by adapters and diagnostics.
- opacity double = 1
- Element opacity from 0 transparent to 1 opaque.
Methods
public static OfficeDrawingImage CreateWithInterpolation(byte[] bytes, string? contentType, OfficeImageProjection projection, bool interpolate, string? alternativeText = null, double opacity = 1) #Creates an image drawing element with explicit scaling interpolation behavior.
Parameters
- bytes byte[]
- contentType string?
- projection OfficeIMO.Drawing.OfficeImageProjection
- interpolate bool
- alternativeText string? = null
- opacity double = 1
Returns
OfficeDrawingImageInherited Methods
Properties
public string ContentType { get; } #Normalized MIME content type, when available.
public OfficeImageProjection Projection { get; } #Destination placement, crop, rotation, and flip settings.
public string? AlternativeText { get; } #Optional semantic label used by adapters and diagnostics.
public double Opacity { get; } #Element opacity from 0 transparent to 1 opaque.
public bool Interpolate { get; } #Whether renderers may smooth pixels while scaling the image.