←Select platform

SaveWithStamp Property

Summary

Enables and disables saving stamp images when saving HEIF/HEIC images.

Syntax

C#
Objective-C
C++/CLI
Java
Python
public bool SaveWithStamp { get; set; } 
@property (nonatomic, assign) BOOL saveWithStamp; 
public boolean getSaveWithStamp() 
public void setSaveWithStamp(boolean value) 
public: 
property bool SaveWithStamp { 
   bool get(); 
   void set (    bool ); 
} 
SaveWithStamp # get and set (CodecsHeicSaveOptions) 

Property Value

Value Description
true To save stamp images
false To not save stamp images. The default value is false.

Example

C#
using Leadtools; 
using Leadtools.Codecs; 
 
using Leadtools.ImageProcessing.Core; 
 
public 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.Load.Multithreaded = false; // CodecsHeicLoadOptions reference 
      codecs.Options.Heic.Save.QualityFactor = 30; // CodecsHeicOptions & CodecsHeicSaveOptions reference 
      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(); 
} 

Requirements

Target Platforms

See Also

CodecsHeicSaveOptions Class

CodecsHeicSaveOptions Members

High Efficiency File Format - HEIC

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

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