Resource Base
Table of contents

CContour

The CContour class represents a contour in 2D space. It contains an array of CPoint objects, which represent the vertices of the contour.

Definition

Namespace: dynamsoft::basic_structures

Assembly: DynamsoftCore

class CContour 

Methods Summary

Method Description
SetPoints Sets the point array and the points free function pointer.
GetPointsCount Gets the number of points in the point array.
GetPoints Gets the point array.
~CContour The destructor of CContour.

~CContour Destructor

The destructor of CContour. It releases the memory of the point array.

~CContour()

SetPoints

Sets the point array and the points free function pointer.

void SetPoints(int pointsCount, const CPoint* points, FreePointsFunc freePointsFunc);

Parameters

[in] pointsCount: The number of points in the point array.

[in] points: The point array.

[in] freePointsFunc: The freePointsFunc function pointer.

GetPointsCount

Gets the number of points in the point array.

int GetPointsCount() const;

Return Value

The number of points in the point array.

GetPoints

Gets the point array.

const CPoint* GetPoints() const;

Return Value

Return the point array.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version (2.2.0)
  • Version 2.x
    • Version 2.0.30
    • Version 2.0.20
    • Version 2.0.10
    • Version 2.0.0
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support