Class ImageExport
Represents the image export filter.
Implements
Inherited Members
Namespace: FastReport.Export.Image
Assembly: FastReport.Base.dll
Syntax
public class ImageExport : ExportBase, IDisposable, IFRSerializable
Constructors
ImageExport()
Initializes a new instance of the ImageExport class.
Declaration
public ImageExport()
Properties
ImageFormat
Gets or sets the image format.
Declaration
public ImageExportFormat ImageFormat { get; set; }
Property Value
Type | Description |
---|---|
ImageExportFormat |
JpegQuality
Gets or sets the jpg image quality.
Declaration
public int JpegQuality { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
This property is used if ImageFormat is set to Jpeg. By default it is set to 100. Use lesser value to decrease the jpg file size.
MonochromeTiff
Gets or sets a value that determines whether the Tiff export must produce monochrome image.
Declaration
public bool MonochromeTiff { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
Monochrome tiff image is compressed using the compression method specified in the MonochromeTiffCompression property.
MonochromeTiffCompression
Gets or sets the compression method for a monochrome TIFF image.
Declaration
public EncoderValue MonochromeTiffCompression { get; set; }
Property Value
Type | Description |
---|---|
EncoderValue |
Remarks
This property is used only when exporting to TIFF image, and the MonochromeTiff property is set to true.
The valid values for this property are: EncoderValue.CompressionNone, EncoderValue.CompressionLZW, EncoderValue.CompressionRle, EncoderValue.CompressionCCITT3, EncoderValue.CompressionCCITT4. The default compression method is CCITT4.
MultiFrameTiff
Gets or sets the value determines whether to produce multi-frame tiff file.
Declaration
public bool MultiFrameTiff { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
PaddingNonSeparatePages
Sets padding in non separate pages
Declaration
public int PaddingNonSeparatePages { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Resolution
Gets or sets image resolution, in dpi.
Declaration
public int Resolution { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
By default this property is set to 96 dpi. Use bigger values (300-600 dpi) if you going to print the exported images.
ResolutionX
Gets or sets horizontal image resolution, in dpi.
Declaration
public int ResolutionX { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
Separate horizontal and vertical resolution is used when exporting to TIFF. In other cases, use the Resolution property instead.
ResolutionY
Gets or sets vertical image resolution, in dpi.
Declaration
public int ResolutionY { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
Separate horizontal and vertical resolution is used when exporting to TIFF. In other cases, use the Resolution property instead.
SaveStreams
Enable or disable saving streams in GeneratedStreams collection.
Declaration
public bool SaveStreams { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
SeparateFiles
Gets or sets a value that determines whether to generate separate image file for each exported page.
Declaration
public bool SeparateFiles { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
If this property is set to false, the export filter will produce one big image containing all exported pages. Be careful using this property with a big report because it may produce out of memory error. And also when using Memory Stream and the value is true, an exception will be thrown.
Methods
ExportBand(BandBase)
Declaration
protected override void ExportBand(BandBase band)
Parameters
Type | Name | Description |
---|---|---|
BandBase | band |
Overrides
ExportPageBegin(ReportPage)
Declaration
protected override void ExportPageBegin(ReportPage page)
Parameters
Type | Name | Description |
---|---|---|
ReportPage | page |
Overrides
ExportPageEnd(ReportPage)
Declaration
protected override void ExportPageEnd(ReportPage page)
Parameters
Type | Name | Description |
---|---|---|
ReportPage | page |
Overrides
Finish()
Declaration
protected override void Finish()
Overrides
GetFileFilter()
Declaration
protected override string GetFileFilter()
Returns
Type | Description |
---|---|
System.String |
Overrides
Serialize(FRWriter)
Declaration
public override void Serialize(FRWriter writer)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer |
Overrides
Start()
Declaration
protected override void Start()