set_BwConversionMode()
TiffOptions::set_BwConversionMode(BlackWhiteConversionMode) method
Specifies the algorithm for converting a color image into a black and white image. This option will applied only if ITiffOptions::get_CompressionType() is set to TiffCompressionTypes::CCITT4 or TiffCompressionTypes::CCITT3 Write BlackWhiteConversionMode. Default is BlackWhiteConversionMode::Default.
void Aspose::Slides::Export::TiffOptions::set_BwConversionMode(BlackWhiteConversionMode value) override
Remarks
The following example shows how to set conversion algorithm to Dithering.
System::SharedPtr<TiffOptions> tiffOptions = System::MakeObject<TiffOptions>();
tiffOptions->set_CompressionType(TiffCompressionTypes::CCITT4);
tiffOptions->set_BwConversionMode(BlackWhiteConversionMode::Dithering);
System::SharedPtr<Presentation> presentation = System::MakeObject<Presentation>();
presentation->Save(tiffFilePath, SaveFormat::Tiff, tiffOptions);
See Also
- Enum BlackWhiteConversionMode
- Class TiffOptions
- Namespace Aspose::Slides::Export
- Library Aspose.Slides