←Select platform

CodecsAvifSaveOptions Class

Summary

Provides options for saving Avif images.

Syntax
C#
Objective-C
C++/CLI
Python
public class CodecsAvifSaveOptions 
@interface LTCodecsAvifSaveOptions : NSObject 
public: 
   ref class CodecsAvifSaveOptions 
class CodecsAvifSaveOptions: 

Example

private static void TestSaveAvif() 
{ 
   string srcFile = @"dunes.bmp"; 
   string dstFile = @"out.avif"; 
 
   using (RasterCodecs codecs = new RasterCodecs()) 
   using (RasterImage image = codecs.Load(srcFile)) 
   { 
      codecs.Options.Avif.Save.QualityFactor = 15; 
      CodecsAvifSaveOptions saveOptions = codecs.Options.Avif.Save; 
      saveOptions.SaveWithStamp = true; 
      saveOptions.StampWidth = 120; 
      saveOptions.StampHeight = 96; 
      codecs.Options.Save.AdjustStampSize = true; 
      codecs.Save(image, dstFile, RasterImageFormat.Avif, 0); 
   } 
} 
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.