Class FeatheringSettings
Class FeatheringSettings
이름 공간 : Aspose.Imaging.MagicWand.ImageMasks 모임: Aspose.Imaging.dll (25.4.0)
수업에 맞는 훈련을 받았습니다.
public class FeatheringSettings
Inheritance
상속 회원들
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
예제는 Magic Wand 도구를 사용하여 이미지의 복잡한 영역을 선택하는 방법과 마스크와 상호 작용 할 수있는 능력을 보여줍니다 (invert, union, substract).
var imageFilePath = "input.png";
using (RasterImage image = (RasterImage)Image.Load(inputFilePath))
{
// Create a new mask using magic wand tool based on tone and color of pixel (845, 128)
MagicWandTool.Select(image, new MagicWandSettings(845, 128))
// Union the existing mask with the specified one created by magic wand tool
.Union(new MagicWandSettings(416, 387))
// Invert the existing mask
.Invert()
// Subtract the specified mask created by magic wand tool with specified threshold from the existing one
.Subtract(new MagicWandSettings(1482, 346) { Threshold = 69 })
// Subtract four specified rectangle masks from the existing mask one by one
.Subtract(new RectangleMask(0, 0, 800, 150))
.Subtract(new RectangleMask(0, 380, 600, 220))
.Subtract(new RectangleMask(930, 520, 110, 40))
.Subtract(new RectangleMask(1370, 400, 120, 200))
// Feather mask with specified settings
.GetFeathered(new FeatheringSettings() { Size = 3 })
// Apply mask to the image
.Apply();
// Save image
image.Save(outputFilePath);
}
Constructors
FeatheringSettings()
public FeatheringSettings()
Properties
Mode
얻거나 페이팅 알고리즘 모드를 설정합니다.
public FeatheringMode Mode { get; set; }
부동산 가치
Size
크기를 얻거나 설정합니다.
public int Size { get; set; }