public bool SaveWithStamp { get; set; } @property (nonatomic, assign) BOOL saveWithStamp; public boolean getSaveWithStamp()public void setSaveWithStamp(boolean value)
SaveWithStamp # get and set (CodecsWebpSaveOptions) 
| Value | Description | 
|---|---|
| true | To save with stamp. | 
| false | To save without stamp. The default value is false. | 
If SaveWithStamp is true, then set CodecsWebpSaveOptions.StampWidth, CodecsWebpSaveOptions.StampHeight properties to indicate the desired stamp size, and ensure CodecsWebpSaveOptions.StampBitsPerPixel is not 0.
Otherwise, if SaveWithStamp is false, the CodecsWebpSaveOptions.StampWidth, CodecsWebpSaveOptions.StampHeight and CodecsWebpSaveOptions.StampBitsPerPixel properties are ignored.
using Leadtools;using Leadtools.Codecs;using Leadtools.ImageProcessing.Core;public void TestSaveWebpExample(){// This example saves 3 files with various stamp settings and quality factorsstring srcFile = Path.Combine(LEAD_VARS.ImagesDir, @"sample1.cmp");string dstFile = Path.Combine(LEAD_VARS.ImagesDir, @"out-");using (RasterCodecs codecs = new RasterCodecs())using (RasterImage image = codecs.Load(srcFile, 1)){// CodecsWebpOptions & CodecsWebpSaveOptions referencecodecs.Options.Webp.Save.SaveWithStamp = true;codecs.Options.Webp.Save.StampBitsPerPixel = 24;codecs.Options.Webp.Save.QualityFactor = 20;codecs.Options.Webp.Save.StampWidth = 160;codecs.Options.Webp.Save.StampHeight = 120;// this file should have a stamp that is 160x120codecs.Save(image, dstFile + "stamp160x120-q20.webp", RasterImageFormat.Webp, 0);// this file should have a stamp that is 240x200codecs.Options.Webp.Save.QualityFactor = 120;codecs.Options.Webp.Save.StampWidth = 240;codecs.Options.Webp.Save.StampHeight = 200;codecs.Save(image, dstFile + "stamp240x200-q120.webp", RasterImageFormat.Webp, 0);// this file should have no stampcodecs.Options.Webp.Save.SaveWithStamp = false;codecs.Options.Webp.Save.QualityFactor = 0;codecs.Save(image, dstFile + "NoStamp-lossless.webp", RasterImageFormat.Webp, 0);}}static class LEAD_VARS{public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images";}
CodecsWebpSaveOptions.StampWidth
CodecsWebpSaveOptions.StampHeight 
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
