Class ContentAwareFillWatermarkOptions

Class ContentAwareFillWatermarkOptions

이름 공간 : Aspose.Imaging.Watermark.Options 모임: Aspose.Imaging.dll (25.4.0)

일반적인 콘텐츠 Aware Fill 알고리즘 옵션.

public class ContentAwareFillWatermarkOptions : WatermarkOptions

Inheritance

object WatermarkOptions ContentAwareFillWatermarkOptions

상속 회원들

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

예제는 콘텐츠 알고리즘을 사용하여 그래픽 경로를 사용하여 이미지에서 어떤 개체를 제거하는 방법을 보여줍니다.

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 ContentAwareFillWatermarkOptions(mask) 
                                                                                                                               { 
                                                                                                                                   MaxPaintingAttempts = 4
                                                                                                                               };

                                                                                                                               var result = WatermarkRemover.PaintOver(pngImage, options);

                                                                                                                               result.Save(outputPath);
                                                                                                                           }

Constructors

ContentAwareFillWatermarkOptions(Point[])

Aspose.Imaging.Watermark.Options.ContentAwareFillWatermarkOptions 클래스의 새로운 예를 시작합니다.

public ContentAwareFillWatermarkOptions(Point[] mask)

Parameters

mask Point [ ] [ [ ]

알려지지 않은 지역에 대한 마스크

ContentAwareFillWatermarkOptions(GraphicsPath)

Aspose.Imaging.Watermark.Options.ContentAwareFillWatermarkOptions 클래스의 새로운 예를 시작합니다.

public ContentAwareFillWatermarkOptions(GraphicsPath mask)

Parameters

mask GraphicsPath

알려지지 않은 지역에 대한 마스크

Properties

InterestArea

그것을 얻거나 패치를 취하기 위해 영역을 설정합니다.

public Rectangle InterestArea { get; set; }

부동산 가치

Rectangle

MaxPaintingAttempts

최대 수의 그림 시도를 얻거나 설정합니다.알고리즘은 최고의 변형을 선택할 것입니다.

public int MaxPaintingAttempts { get; set; }

부동산 가치

int

Examples

예제는 콘텐츠 알고리즘을 사용하여 그래픽 경로를 사용하여 이미지에서 어떤 개체를 제거하는 방법을 보여줍니다.

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 ContentAwareFillWatermarkOptions(mask) 
                                                                                                                               { 
                                                                                                                                   MaxPaintingAttempts = 4
                                                                                                                               };

                                                                                                                               var result = WatermarkRemover.PaintOver(pngImage, options);

                                                                                                                               result.Save(outputPath);
                                                                                                                           }

PatchSize

그것을 얻거나 패치 크기를 설정합니다 (그것은 이상해야합니다).

public byte PatchSize { get; set; }

부동산 가치

byte

 한국어