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
Contentbyte[]PNG, JPEG or SVG bytes. One that cannot be drawn is skipped, with its caption still printed.
CaptionstringPrinted under the picture when given.
MaxWidthfloatThe widest it is drawn, in points (72 per inch).
MaxHeightfloatThe tallest it is drawn, in points.
Properties
Caption
Printed under the picture when given.
public string? Caption { get; init; }
Property Value
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
MaxWidth
The widest it is drawn, in points (72 per inch).
public float MaxWidth { get; init; }