Class TeleaWatermarkOptions
Le nom : Aspose.Imaging.Watermark.Options Assemblée: Aspose.Imaging.dll (25.4.0)
Les options d’algorithme communs.
public class TeleaWatermarkOptions : WatermarkOptions
Inheritance
object ← WatermarkOptions ← TeleaWatermarkOptions
I membri ereditari
WatermarkOptions.Mask , WatermarkOptions.PrecalculationProgressEventHandler , WatermarkOptions.GraphicsPathMask , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
L’exemple montre comment supprimer un objet de l’image en utilisant Graphics Path avec le algorithme Telea.
var imageFilePath = "ball.png";
using (var image = Image.Load(imageFilePath))
{
var pngImage = (PngImage)image;
var mask = new GraphicsPath();
var firstFigure = new Figure();
firstFigure.AddShape(new EllipseShape(new RectangleF(350, 170, 570 - 350, 400 - 170)));
mask.AddFigure(firstFigure);
var options = new TeleaWatermarkOptions(mask);
var result = WatermarkRemover.PaintOver(pngImage, options);
result.Save(outputPath);
}
Constructors
TeleaWatermarkOptions(Point[])
Initialisez une nouvelle instance de la catégorie Aspose.Imaging.Watermark.Options.Telea.
public TeleaWatermarkOptions(Point[] mask)
Parameters
mask
Point
[ ]
Le masque pour la zone inconnue.
TeleaWatermarkOptions(GraphicsPath)
Initialisez une nouvelle instance de la catégorie Aspose.Imaging.Watermark.Options.Telea.
public TeleaWatermarkOptions(GraphicsPath mask)
Parameters
mask
GraphicsPath
Le masque pour la zone inconnue.
Properties
HalfPatchSize
Obtenez ou définissez la moitié de la taille du patch.
public int HalfPatchSize { get; set; }