Table of Contents

Class SectionDocumentImage

Namespace
NuvTools.Report.Documents
Assembly
NuvTools.Report.dll

A picture — a signature, a chart — kept at its proportions.

public record SectionDocumentImage : SectionDocumentBlock, IEquatable<SectionDocumentBlock>, IEquatable<SectionDocumentImage>
Inheritance
SectionDocumentImage
Implements
Inherited Members

Constructors

SectionDocumentImage(byte[], string?, float, float)

A picture — a signature, a chart — kept at its proportions.

public SectionDocumentImage(byte[] Content, string? Caption = null, float MaxWidth = 220, float MaxHeight = 90)

Parameters

Content byte[]

PNG, JPEG or SVG bytes. One that cannot be drawn is skipped, with its caption still printed.

Caption string

Printed under the picture when given.

MaxWidth float

The widest it is drawn, in points (72 per inch).

MaxHeight float

The tallest it is drawn, in points.

Properties

Caption

Printed under the picture when given.

public string? Caption { get; init; }

Property Value

string

Content

PNG, JPEG or SVG bytes. One that cannot be drawn is skipped, with its caption still printed.

public byte[] Content { get; init; }

Property Value

byte[]

MaxHeight

The tallest it is drawn, in points.

public float MaxHeight { get; init; }

Property Value

float

MaxWidth

The widest it is drawn, in points (72 per inch).

public float MaxWidth { get; init; }

Property Value

float