C# Class Emgu.CV.Structure.MCvFont

ファイルを表示 Open project: fajoy/RTSPExample Class Usage Examples

Public Properties

Property Type Description
ascii System.IntPtr
color MCvScalar
cyrillic System.IntPtr
dx float
fontName System.IntPtr
font_face CvEnum.FONT
greek System.IntPtr
hscale float
line_type int
shear float
thickness int
vscale float

Public Methods

Method Description
GetTextSize ( string text, int baseline ) : System.Drawing.Size

Calculates the binding rectangle for the given text string when the font is used

MCvFont ( CvEnum type, double hscale, double vscale ) : System

Create a Font of the specific type, horizontal scale and vertical scale

Method Details

GetTextSize() public method

Calculates the binding rectangle for the given text string when the font is used
public GetTextSize ( string text, int baseline ) : System.Drawing.Size
text string Input string
baseline int y-coordinate of the baseline relatively to the bottom-most text point
return System.Drawing.Size

MCvFont() public method

Create a Font of the specific type, horizontal scale and vertical scale
public MCvFont ( CvEnum type, double hscale, double vscale ) : System
type CvEnum The type of the font
hscale double The horizontal scale of the font
vscale double the vertical scale of the fonr
return System

Property Details

ascii public_oe property

font data and metrics
public IntPtr,System ascii
return System.IntPtr

color public_oe property

For QT
public MCvScalar color
return MCvScalar

cyrillic public_oe property

public IntPtr,System cyrillic
return System.IntPtr

dx public_oe property

horizontal interval between letters
public float dx
return float

fontName public_oe property

For QT
public IntPtr,System fontName
return System.IntPtr

font_face public_oe property

Font type
public CvEnum.FONT font_face
return CvEnum.FONT

greek public_oe property

public IntPtr,System greek
return System.IntPtr

hscale public_oe property

hscale
public float hscale
return float

line_type public_oe property

type of line
public int line_type
return int

shear public_oe property

slope coefficient: 0 - normal, >0 - italic
public float shear
return float

thickness public_oe property

letters thickness
public int thickness
return int

vscale public_oe property

vscale
public float vscale
return float