Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeDrawingImage

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Source revision 45ddf07f0b84 with working tree changes
Modifiers sealed

Positioned image element inside an OfficeDrawing canvas.

Inheritance

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.

Constructors

public OfficeDrawingImage(Byte[] bytes, String? contentType, OfficeImageProjection projection, String? alternativeText = null, Double opacity = 1) #

Creates an image drawing element.

Parameters

bytes System.Byte[] requiredposition: 0
Embedded source image bytes.
contentType System.String? requiredposition: 1
Optional MIME content type.
projection OfficeIMO.Drawing.OfficeImageProjection requiredposition: 2
Destination placement, crop, rotation, and flip settings.
alternativeText System.String? = null optionalposition: 3
Optional semantic label used by adapters and diagnostics.
opacity System.Double = 1 optionalposition: 4
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: OfficeDrawingImage

Creates an image drawing element with explicit scaling interpolation behavior.

Parameters

bytes System.Byte[] requiredposition: 0
contentType System.String? requiredposition: 1
projection OfficeIMO.Drawing.OfficeImageProjection requiredposition: 2
interpolate System.Boolean requiredposition: 3
alternativeText System.String? = null optionalposition: 4
opacity System.Double = 1 optionalposition: 5

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.