Class ConnectedComponent
- Namespace
- ImageMagick
- Assembly
- Magick.NET-Q8-AnyCPU.dll
Encapsulation of the ImageMagick connected component object.
public sealed class ConnectedComponent : IConnectedComponent<byte>
- Inheritance
-
ConnectedComponent
- Implements
-
IConnectedComponent<byte>
- Inherited Members
Properties
Area
Gets the pixel count of the area.
public uint 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<byte>? Color { get; }
Property Value
- IMagickColor<byte>
Height
Gets the height of the area.
public uint 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 uint 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(uint)
Returns the geometry of the area of this connected component.
public IMagickGeometry ToGeometry(uint extent)
Parameters
extent
uintThe number of pixels to extent the image with.
Returns
- IMagickGeometry
The geometry of the area of this connected component.