| OpenCV 4.3.0 Open Source Computer Vision

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

This structure represents a text string to draw using FreeType renderer. More...

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

## Public Member Functions
| FText (const std::wstring &text_, const cv::Point &org_, int fh_, const cv::Scalar &color_)
| FText constructor. More...

## Public Attributes
std::wstring | text
| The text string to be drawn. More...
cv::Point | org
| The bottom-left corner of the text string in the image. More...
int | fh
| The height of text. More...
cv::Scalar | color
| The text color. More...

## Detailed Description

This structure represents a text string to draw using FreeType renderer.

If OpenCV is built without FreeType support, this primitive will fail at the execution stage.

## Constructor & Destructor Documentation

## ◆ FText()

cv::gapi::wip::draw::FText::FText | ( | const std::wstring & | text_,
|  | const cv::Point & | org_,
|  | int | fh_,
|  | const cv::Scalar & | color_
| ) |  |
| inline

FText constructor.

Parameters

  text_ | The text string to be drawn
  org_ | The bottom-left corner of the text string in the image
  fh_ | The height of text
  color_ | The text color

## Member Data Documentation

## ◆ color

cv::Scalar cv::gapi::wip::draw::FText::color

The text color.

## ◆ fh

int cv::gapi::wip::draw::FText::fh

The height of text.

## ◆ org

cv::Point cv::gapi::wip::draw::FText::org

The bottom-left corner of the text string in the image.

## ◆ text

std::wstring cv::gapi::wip::draw::FText::text

The text string to be drawn.

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

- opencv2/gapi/render/render.hpp