| OpenCV 4.3.0 Open Source Computer Vision

Public Member Functions | List of all members
cv::gapi::wip::draw::Poly Struct Reference
G-API Drawing and composition functionality » Drawing primitives

This structure represents a polygon to draw. More...

`#include <opencv2/gapi/render/render.hpp>`

## Public Member Functions
| Poly (const std::vector< cv::Point > &points_, const cv::Scalar &color_, int thick_=1, int lt_=cv::LINE_8, int shift_=0)
| Mosaic constructor. More...

## Public Attributes
std::vector< cv::Point > | points
| Points to connect. More...
cv::Scalar | color
| The line color. More...
int | thick
| The thickness of line. More...
int | lt
| The Type of the line. See LineTypes. More...
int | shift
| The number of fractional bits in the point coordinate. More...

## Detailed Description

This structure represents a polygon to draw.

## Constructor & Destructor Documentation

## ◆ Poly()

cv::gapi::wip::draw::Poly::Poly | ( | const std::vector< cv::Point > & | points_,
|  | const cv::Scalar & | color_,
|  | int | thick_ = `1`,
|  | int | lt_ = `cv::LINE_8`,
|  | int | shift_ = `0`
| ) |  |
| inline

Mosaic constructor.

Parameters

  points_ | Points to connect
  color_ | The line color
  thick_ | The thickness of line
  lt_ | The Type of the line. See LineTypes
  shift_ | The number of fractional bits in the point coordinate

## Member Data Documentation

## ◆ color

cv::Scalar cv::gapi::wip::draw::Poly::color

The line color.

## ◆ lt

int cv::gapi::wip::draw::Poly::lt

The Type of the line. See LineTypes.

## ◆ points

std::vector<cv::Point> cv::gapi::wip::draw::Poly::points

Points to connect.

## ◆ shift

int cv::gapi::wip::draw::Poly::shift

The number of fractional bits in the point coordinate.

## ◆ thick

int cv::gapi::wip::draw::Poly::thick

The thickness of line.

The documentation for this struct was generated from the following file:

- opencv2/gapi/render/render.hpp