Interface ITiffOptions

Interface ITiffOptions

Namespace: Aspose.Slides.Export
Assembly: Aspose.Slides.dll (25.12.0)

Provides options that control how a presentation is saved in TIFF format.

[ComVisible(true)]
[Guid("3cb136f3-42ad-4fee-8f79-cc22e91fc1b7")]
public interface ITiffOptions : ISaveOptions

Implements

ISaveOptions

Properties

AsISaveOptions

Returns ISaveOptions interface. Read-only Aspose.Slides.Export.ISaveOptions.

ISaveOptions AsISaveOptions { get; }

Property Value

ISaveOptions

Remarks

For COM compatibility.

BwConversionMode

Specifies the algorithm for converting a color image into a black and white image. This option will applied only if Aspose.Slides.Export.ITiffOptions.CompressionType is set to Aspose.Slides.Export.TiffCompressionTypes.CCITT4 or Aspose.Slides.Export.TiffCompressionTypes.CCITT3 Read/write Aspose.Slides.Export.BlackWhiteConversionMode. Default is Aspose.Slides.Export.BlackWhiteConversionMode.Default.

BlackWhiteConversionMode BwConversionMode { get; set; }

Property Value

BlackWhiteConversionMode

Examples

TiffOptions tiffOptions = new TiffOptions();
tiffOptions.CompressionType = TiffCompressionTypes.CCITT4;
tiffOptions.BwConversionMode = BlackWhiteConversionMode.Dithering;

using (var presentation = new Presentation())
{
    presentation.Save(tiffFilePath, SaveFormat.Tiff, tiffOptions);
}

CompressionType

Specifies the compression type. Read/write Aspose.Slides.Export.TiffCompressionTypes.

TiffCompressionTypes CompressionType { get; set; }

Property Value

TiffCompressionTypes

DpiX

Specifies the horizontal resolution in dots per inch. Read/write System.UInt32.

uint DpiX { get; set; }

Property Value

uint

DpiY

Specifies the vertical resolution in dots per inch. Read/write System.UInt32.

uint DpiY { get; set; }

Property Value

uint

ImageSize

Specifies size of a generated TIFF image. Default value is 0x0, what means that generated image sizes will be calculated based on presentation slide size value. Read/write System.Drawing.Size.

Size ImageSize { get; set; }

Property Value

Size

InkOptions

Provides options that control the look of Ink objects in exported document. Read-only Aspose.Slides.Export.IInkOptions

IInkOptions InkOptions { get; }

Property Value

IInkOptions

PixelFormat

Specifies the pixel format for the generated images. Read/write Aspose.Slides.Export.ImagePixelFormat.

ImagePixelFormat PixelFormat { get; set; }

Property Value

ImagePixelFormat

ShowHiddenSlides

Specifies whether the generated document should include hidden slides or not. Default is false.

bool ShowHiddenSlides { get; set; }

Property Value

bool

SlidesLayoutOptions

Gets or sets the mode in which slides are placed on the page when exporting a presentation Aspose.Slides.Export.ISlidesLayoutOptions.

ISlidesLayoutOptions SlidesLayoutOptions { get; set; }

Property Value

ISlidesLayoutOptions

Examples

Example:

using (Presentation pres = new Presentation("pres.pptx"))
            {
                TiffOptions options = new TiffOptions
                {
                    SlidesLayoutOptions = new HandoutLayoutingOptions
                    {
                        Handout = HandoutType.Handouts4Horizontal
                    }
                };

                pres.Save("pres.tiff", SaveFormat.Tiff, options);
            }