Constructor XlsxImage
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
databyte[]The encoded image bytes.
contentTypestringThe media type, such as
image/png.rowintThe one-based row the top-left corner sits in.
columnintThe one-based column the top-left corner sits in.
widthEmuThe drawn width.
heightEmuThe drawn height.
Exceptions
- ArgumentNullException
dataorcontentTypeis null.- ArgumentException
datais empty orcontentTypeis blank.- ArgumentOutOfRangeException
The anchor is not one-based, or the size is negative.