CvFont Class OpenCvSharp Class Library
Font structure
Inheritance Hierarchy

SystemObject
  OpenCvSharpDisposableObject
    OpenCvSharpDisposableCvObject
      OpenCvSharpCvFont
        OpenCvSharpCvFontQt

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public class CvFont : DisposableCvObject

The CvFont type exposes the following members.

Constructors

  NameDescription
Protected methodCvFont
Initializes a new instance of the CvFont class
Public methodCvFont(FontFace, Double, Double)
Initializes font structure
Public methodCvFont(FontFace, Double, Double, Double)
Initializes font structure
Public methodCvFont(FontFace, Double, Double, Double, Int32)
Initializes font structure
Public methodCvFont(FontFace, Double, Double, Double, Int32, LineType)
Initializes font structure
Top
Properties

  NameDescription
Protected propertyAllocatedMemory
Gets or sets a memory address allocated by AllocMemory.
(Inherited from DisposableObject.)
Protected propertyAllocatedMemorySize
Gets or sets the byte length of the allocated memory
(Inherited from DisposableObject.)
Public propertyAscii
font data and metrics
Public propertyColor
ColorFont -> cvScalar(blue_component, green_component, red\_component[, alpha_component])
Public propertyCvPtr
Native pointer of OpenCV structure
(Inherited from DisposableCvObject.)
Public propertyCyrillic
Public propertyDx
horizontal interval between letters
Public propertyFontFace
Font name identifier
Public propertyGreek
Public propertyHScale
Horizontal scale. If equal to 1.0f, the characters have the original width depending on the font type. If equal to 0.5f, the characters are of half the original width.
Public propertyIsDisposed
Gets a value indicating whether this instance has been disposed.
(Inherited from DisposableObject.)
Public propertyIsEnabledDispose
Gets or sets a value indicating whether you permit disposing this instance.
(Inherited from DisposableObject.)
Public propertyLineType
Type of the strokes
Public propertyNameFont
ColorFont -> cvScalar(blue_component, green_component, red\_component[, alpha_component])
Public propertyShear
slope coefficient: 0 - normal, >0 - italic
Public propertyThickness
letters thickness
Public propertyVScale
Vertical scale. If equal to 1.0f, the characters have the original height depending on the font type. If equal to 0.5f, the characters are of half the original height.
Top
Methods

  NameDescription
Protected methodAllocGCHandle
Pins the object to be allocated by cvSetData.
(Inherited from DisposableObject.)
Protected methodAllocMemory
Allocates the specified size of memory.
(Inherited from DisposableObject.)
Public methodDispose
Releases the resources
(Inherited from DisposableObject.)
Protected methodDispose(Boolean)
Clean up any resources being used.
(Overrides DisposableCvObjectDispose(Boolean).)
Public methodEquals (Inherited from Object.)
Protected methodFinalize
Destructor
(Inherited from DisposableObject.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetTextSize(String)
Retrieves width and height of text string
Public methodGetTextSize(String, Int32)
Retrieves width and height of text string
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodNotifyMemoryPressure
Notifies the allocated size of memory.
(Inherited from DisposableObject.)
Public methodThrowIfDisposed
If this object is disposed, then ObjectDisposedException is thrown.
(Inherited from DisposableObject.)
Public methodToString (Inherited from Object.)
Top
Fields

  NameDescription
Protected fielddataHandle
Gets or sets a handle which allocates using cvSetData.
(Inherited from DisposableObject.)
Protected fieldptr
Data pointer
(Inherited from DisposableCvObject.)
Public fieldStatic memberSizeOf
sizeof(CvFont)
Top
See Also

Reference