|
Revision 32620, 1.9 kB
(checked in by schima, 4 years ago)
|
|
WCvConDensation
|
| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * (C) 2008-2009 Schima
|
|---|
| 3 | * This code is licenced under the LGPL.
|
|---|
| 4 | */
|
|---|
| 5 |
|
|---|
| 6 | #pragma once
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 | namespace KwsmLab {
|
|---|
| 10 | namespace OpenCvSharp {
|
|---|
| 11 | namespace Extern
|
|---|
| 12 | {
|
|---|
| 13 | /// <summary>
|
|---|
| 14 | /// フォント
|
|---|
| 15 | /// </summary>
|
|---|
| 16 | public ref class WCvFont
|
|---|
| 17 | {
|
|---|
| 18 | private:
|
|---|
| 19 | CvFont* _ptr;
|
|---|
| 20 |
|
|---|
| 21 | public:
|
|---|
| 22 | /// <summary>
|
|---|
| 23 | /// 元データであるCvFont*を取得する
|
|---|
| 24 | /// </summary>
|
|---|
| 25 | initonly IntPtr Ptr;
|
|---|
| 26 | /// <summary>
|
|---|
| 27 | /// sizeof(CvFont) を取得する
|
|---|
| 28 | /// </summary>
|
|---|
| 29 | literal Int32 SizeOf = static_cast<Int32>(sizeof(CvFont));
|
|---|
| 30 |
|
|---|
| 31 | /// <summary>
|
|---|
| 32 | /// 初期化
|
|---|
| 33 | /// </summary>
|
|---|
| 34 | WCvFont(IntPtr ptr)
|
|---|
| 35 | {
|
|---|
| 36 | this->_ptr = static_cast<CvFont*>(ptr.ToPointer());
|
|---|
| 37 | this->Ptr = IntPtr(ptr);
|
|---|
| 38 | }
|
|---|
| 39 |
|
|---|
| 40 | property int font_face
|
|---|
| 41 | {
|
|---|
| 42 | int get(){ return _ptr->font_face; }
|
|---|
| 43 | void set(int value){ _ptr->font_face = value; }
|
|---|
| 44 | };
|
|---|
| 45 | property IntPtr ascii
|
|---|
| 46 | {
|
|---|
| 47 | IntPtr get(){ return IntPtr(const_cast<int*>(_ptr->ascii)); }
|
|---|
| 48 | }
|
|---|
| 49 | property IntPtr greek
|
|---|
| 50 | {
|
|---|
| 51 | IntPtr get(){ return IntPtr(const_cast<int*>(_ptr->greek)); }
|
|---|
| 52 | }
|
|---|
| 53 | property IntPtr cyrillic
|
|---|
| 54 | {
|
|---|
| 55 | IntPtr get(){ return IntPtr(const_cast<int*>(_ptr->cyrillic)); }
|
|---|
| 56 | }
|
|---|
| 57 | property float hscale
|
|---|
| 58 | {
|
|---|
| 59 | float get(){ return _ptr->hscale; }
|
|---|
| 60 | void set(float value){ _ptr->hscale = value; }
|
|---|
| 61 | };
|
|---|
| 62 | property float vscale
|
|---|
| 63 | {
|
|---|
| 64 | float get(){ return _ptr->vscale; }
|
|---|
| 65 | void set(float value){ _ptr->vscale = value; }
|
|---|
| 66 | };
|
|---|
| 67 | property float shear
|
|---|
| 68 | {
|
|---|
| 69 | float get(){ return _ptr->shear; }
|
|---|
| 70 | void set(float value){ _ptr->shear = value; }
|
|---|
| 71 | };
|
|---|
| 72 | property int thickness
|
|---|
| 73 | {
|
|---|
| 74 | int get(){ return _ptr->thickness; }
|
|---|
| 75 | void set(int value){ _ptr->thickness = value; }
|
|---|
| 76 | };
|
|---|
| 77 | property float dx
|
|---|
| 78 | {
|
|---|
| 79 | float get(){ return _ptr->dx; }
|
|---|
| 80 | void set(float value){ _ptr->dx = value; }
|
|---|
| 81 | };
|
|---|
| 82 | property int line_type
|
|---|
| 83 | {
|
|---|
| 84 | int get(){ return _ptr->line_type; }
|
|---|
| 85 | void set(int value){ _ptr->line_type = value; }
|
|---|
| 86 | };
|
|---|
| 87 |
|
|---|
| 88 | };
|
|---|
| 89 | }
|
|---|
| 90 | }
|
|---|
| 91 | } |
|---|