Table of Contents

Struct XLPictureInfo

Namespace
SlapKit.Excel.Graphics
Assembly
SlapKit.Excel.dll

Metadata info about a picture. At least one of the sizes (pixels/physical) must be set.

public readonly struct XLPictureInfo
Inherited Members
Extension Methods

Constructors

XLPictureInfo(XLPictureFormat, Size, Size)

public XLPictureInfo(XLPictureFormat format, Size sizePx, Size sizePhys)

Parameters

format XLPictureFormat
sizePx Size
sizePhys Size

XLPictureInfo(XLPictureFormat, Size, Size, double, double)

public XLPictureInfo(XLPictureFormat format, Size sizePx, Size sizePhys, double dpiX, double dpiY)

Parameters

format XLPictureFormat
sizePx Size
sizePhys Size
dpiX double
dpiY double

XLPictureInfo(XLPictureFormat, uint, uint, double, double)

public XLPictureInfo(XLPictureFormat format, uint width, uint height, double dpiX, double dpiY)

Parameters

format XLPictureFormat
width uint
height uint
dpiX double
dpiY double

Properties

DpiX

0 = use workbook DPI.

public double DpiX { get; }

Property Value

double

DpiY

0 = use workbook DPI.

public double DpiY { get; }

Property Value

double

Format

Detected format of the image.

public XLPictureFormat Format { get; }

Property Value

XLPictureFormat

SizePhys

A physical size in 0.01mm. Used by vector images.

public Size SizePhys { get; }

Property Value

Size

SizePx

Size of the picture in pixels.

public Size SizePx { get; }

Property Value

Size