资源简介
基于C++MFC的字体提取,在计算机中TTF字体的轮廓线提取。

代码片段和文件信息
// MainFrm.cpp : implementation of the CMainframe class
// Donwload by http://www.codefans.net
#include “stdafx.h“
#include “UVectorFont.h“
#include “MainFrm.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMainframe
IMPLEMENT_DYNCREATE(CMainframe CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code !
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static UINT indicators[] =
{
ID_SEPARATOR // status line indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
/////////////////////////////////////////////////////////////////////////////
// CMainframe construction/destruction
CMainframe::CMainframe()
{
// TODO: add member initialization code here
}
CMainframe::~CMainframe()
{
}
int CMainframe::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CframeWnd::OnCreate(lpCreateStruct) == -1)
return -1;
if (!m_wndToolBar.CreateEx(this TBstyle_FLAT WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed to create toolbar\n“);
return -1; // fail to create
}
if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators
sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed to create status bar\n“);
return -1; // fail to create
}
// TODO: Delete these three lines if you don‘t want the toolbar to
// be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return 0;
}
BOOL CMainframe::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CframeWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CMainframe diagnostics
#ifdef _DEBUG
void CMainframe::AssertValid() const
{
CframeWnd::AssertValid();
}
void CMainframe::Dump(CDumpContext& dc) const
{
CframeWnd::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMainframe message handlers
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
----------- --------- ---------- ----- ----
90547 27
相关资源
- 三维点云边界提取
- opencv激光中心线的提取
- c++MFC车牌自动识别定位,只能定位和
- ORB特征点提取
- VC图像处理-用Canny算子提取边缘
- 三维重建 特征点提取 立体匹配
- Sift特征点提取与匹配opencv库
- 道路提取算法 c++ opencv
- 图像边缘提取经典算法MFC实现
- 从DEM数据中提取等高线——MFC编写
- 魔兽ID提取器第二版源码
- (LSB算法)数字水印的嵌入和提取V
- 虹膜分割 Iris Segmentation C++和opencv实现
- surf特征提取与匹配
- 编译原理LL1文法的mfc实现含消除左递
- Moravec算子
- 特征点提取和影像匹配
- SIFT特征提取C++
- 基于VC++与OpenCV的圆心坐标提取
- 用于图像边缘提取的prewitt算子的C++代
- 数字水印的(LSB算法)嵌入和提取V
- 汉字点阵字库建立与提取
- openCV纹理图像特征提取,比较两幅图
- VMTK Tutorials
- VC++ 图像文字提取
- LSD线特征提取方法+Opencv实现C++
- vibe运动目标提取opencv C++源代码
- C++ 从数据库中提取图片
- C++ 网页链接提取器
- HED 深度学习边缘提取 C++接口测试程序
评论
共有 条评论