Class ConnectedComponent
- Namespace
- ImageMagick
- Assembly
- Magick.NET-Q16-AnyCPU.dll
Encapsulation of the ImageMagick connected component object.
public sealed class ConnectedComponent : IConnectedComponent<ushort>
- Inheritance
-
ConnectedComponent
- Implements
-
IConnectedComponent<ushort>
- Inherited Members
Properties
Area
Gets the pixel count of the area.
public int Area { get; }
Property Value
Centroid
Gets the centroid of the area.
public PointD Centroid { get; }
Property Value
- PointD
Color
Gets the color of the area.
public IMagickColor<ushort>? Color { get; }
Property Value
- IMagickColor<ushort>
Height
Gets the height of the area.
public int Height { get; }
Property Value
Id
Gets the id of the area.
public int Id { get; }
Property Value
Width
Gets the width of the area.
public int Width { get; }
Property Value
X
Gets the X offset from origin.
public int X { get; }
Property Value
Y
Gets the Y offset from origin.
public int Y { get; }
Property Value
Methods
ToGeometry()
Returns the geometry of the area of this connected component.
public IMagickGeometry ToGeometry()
Returns
- IMagickGeometry
The geometry of the area of this connected component.
ToGeometry(int)
Returns the geometry of the area of this connected component.
public IMagickGeometry ToGeometry(int extent)
Parameters
extent
intThe number of pixels to extent the image with.
Returns
- IMagickGeometry
The geometry of the area of this connected component.