Table of Contents

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

int

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

int

Id

Gets the id of the area.

public int Id { get; }

Property Value

int

Width

Gets the width of the area.

public int Width { get; }

Property Value

int

X

Gets the X offset from origin.

public int X { get; }

Property Value

int

Y

Gets the Y offset from origin.

public int Y { get; }

Property Value

int

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 int

The number of pixels to extent the image with.

Returns

IMagickGeometry

The geometry of the area of this connected component.