API Reference
Class
OfficeDrawingImage
Positioned image element inside an OfficeDrawing canvas.
Inheritance
- OfficeDrawingElement
- OfficeDrawingImage
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- 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 System.Byte[]
- Embedded source image bytes.
- contentType System.String
- Optional MIME content type.
- projection OfficeIMO.Drawing.OfficeImageProjection
- Destination placement, crop, rotation, and flip settings.
- alternativeText System.String = null
- Optional semantic label used by adapters and diagnostics.
- opacity System.Double = 1
- Element opacity from 0 transparent to 1 opaque.
Methods
public static OfficeDrawingImage CreateWithInterpolation(Byte[] bytes, String contentType, OfficeImageProjection projection, Boolean interpolate, String alternativeText = null, Double opacity = 1) #Returns:
OfficeDrawingImageCreates an image drawing element with explicit scaling interpolation behavior.
Parameters
- bytes System.Byte[]
- contentType System.String
- projection OfficeIMO.Drawing.OfficeImageProjection
- interpolate System.Boolean
- alternativeText System.String = null
- opacity System.Double = 1
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public Byte[] Bytes { get; } #Embedded source image bytes.
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 Boolean Interpolate { get; } #Whether renderers may smooth pixels while scaling the image.