OpenCV  4.5.1
Open Source Computer Vision
Public Member Functions | List of all members
cv::gapi::wip::draw::FText Struct Reference

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

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

Public Member Functions

 FText (const std::wstring &text_, const cv::Point &org_, int fh_, const cv::Scalar &color_)
 FText constructor. More...
 
 FText ()=default
 

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() [1/2]

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

◆ FText() [2/2]

cv::gapi::wip::draw::FText::FText ( )
default

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: