←Select platform

CodecsHeicOptions Class

Summary

Provides extra options for loading and saving Heif/Heic images.

Syntax

C#
VB
Objective-C
C++
Java
public class CodecsHeicOptions 
Public Class CodecsHeicOptions  
@interface LTCodecsHeicOptions : NSObject 
public class CodecsHeicOptions 
public ref class CodecsHeicOptions  

Requirements

Target Platforms

Example

C#
using Leadtools; 
using Leadtools.Codecs; 
 
 
public static void CodecsHeicOptions_Example() { 
   RasterCodecs codecs = new RasterCodecs(); 
   string fileName = "C:\temp\test.heic"; 
   using (RasterImage image = codecs.Load(fileName)) 
   { 
      /* Save a HEIC file using qFactor of 30 and no stamp */ 
      string outFile30 = @"C:\temp\out30-NoStamp.heic"; 
      codecs.Options.Heic.Save.QualityFactor = 30; 
      codecs.Save(image, outFile30, RasterImageFormat.Heic, 0); 
 
      /* Save a HEIC file using qFactor of 40 and a stamp */ 
      string outFile40 = @"C:\temp\out40-Stamp.heic"; 
      codecs.Options.Heic.Save.QualityFactor = 40; 
      codecs.Options.Heic.Save.SaveWithStamp = true; 
      codecs.Options.Heic.Save.StampWidth = 320; 
      codecs.Options.Heic.Save.StampHeight = codecs.Options.Heic.Save.StampWidth * image.Height / image.Width; 
      codecs.Options.Heic.Save.StampBitsPerPixel = 24; 
      codecs.Save(image, outFile40, RasterImageFormat.Heic, 0); 
   } 
 
   // Clean up  
   codecs.Dispose(); 
} 

See Also

CodecsHeicOptions Members

Leadtools.Codecs Namespace

High Efficiency File Format - HEIC

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

Leadtools.Codecs Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.