Table of Contents

Constructor XlsxImage

Namespace
DocWright.Formats.Xlsx
Assembly
DocWright.Formats.Xlsx.dll

XlsxImage(byte[], string, int, int, Emu, Emu)

Creates an anchored image.

public XlsxImage(byte[] data, string contentType, int row, int column, Emu width, Emu height)

Parameters

data byte[]

The encoded image bytes.

contentType string

The media type, such as image/png.

row int

The one-based row the top-left corner sits in.

column int

The one-based column the top-left corner sits in.

width Emu

The drawn width.

height Emu

The drawn height.

Exceptions

ArgumentNullException

data or contentType is null.

ArgumentException

data is empty or contentType is blank.

ArgumentOutOfRangeException

The anchor is not one-based, or the size is negative.