Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeDrawingImage

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 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 byte[] required
Embedded source image bytes.
contentType string? required
Optional MIME content type.
projection OfficeIMO.Drawing.OfficeImageProjection required
Destination placement, crop, rotation, and flip settings.
alternativeText string? = null optional
Optional semantic label used by adapters and diagnostics.
opacity double = 1 optional
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[] required
contentType string? required
projection OfficeIMO.Drawing.OfficeImageProjection required
interpolate bool required
alternativeText string? = null optional
opacity double = 1 optional

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 bool Interpolate { get; } #

Whether renderers may smooth pixels while scaling the image.