ActiveReports 8
CompressionScheme Property
See Also  Example
GrapeCity.ActiveReports.Export.Image.v8 Assembly > GrapeCity.ActiveReports.Export.Image.Tiff.Section Namespace > TiffExport Class : CompressionScheme Property

Glossary Item Box

Sets or returns a value which specifies the compression scheme to be used when exporting a TIFF file.

Syntax

Visual Basic (Declaration) 
Public Property CompressionScheme As CompressionScheme
C# 
public CompressionScheme CompressionScheme {get; set;}

Property Value

CompressionScheme enumeration.

Remarks

The default value for CompressionScheme is Ccitt3, which can be used for 1 color depth, the old standard for faxes.  Another enumeration of this property which will produce black and white TIFF files are Ccitt4 and RLE, or run-length encoding. 

To export color TIFF files, set the CompressionScheme to None.  There is also a new Lzw compression scheme.  The new scheme provides a lossless color export for 1, 4 and 8 bit color depths with a smaller footprint, and is based on the Unisys patent on Lzw compression.

Example

Visual BasicCopy Code
Dim rpt As New SectionReport1()
rpt.Run()
Me.tiffExport1.CompressionScheme = GrapeCity.ActiveReports.Export.Image.Tiff.Section.CompressionScheme.None
'Setting the CompressionScheme to None allows colors to be exported
Me.tiffExport1.Export(rpt.Document, Application.StartupPath & "\t.tiff")
C#Copy Code
SectionReport1 rpt = new SectionReport1();
rpt.Run();
this.tiffExport1.CompressionScheme = GrapeCity.ActiveReports.Export.Image.Tiff.Section.CompressionScheme.None;
//Setting the CompressionScheme to None allows colors to be exported
this.tiffExport1.Export(rpt.Document, Application.StartupPath + "\\t.tiff");

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

TiffExport Class
TiffExport Members
CompressionScheme Enumeration