Gets and sets the width for the stamp image.
public int StampWidth { get; set; } @property (nonatomic, assign) NSUInteger stampWidth; public int getStampWidth()public void setStampWidth(int value)
StampWidth # get and set (CodecsHeicSaveOptions)
The width for the stamp image. The default value is 0.
Note
- The HEIF file format specification recommends that the width and height of the stamp are set to values <= 320.
- The MIAF file format specification also recommends that the image-size to stamp-size ratio result in values <= 200:1.
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 referencecodecs.Options.Heic.Save.QualityFactor = 30; // CodecsHeicOptions & CodecsHeicSaveOptions referencecodecs.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 upcodecs.Dispose();}
High Efficiency File Format - HEIC
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
