资源简介
MathCast is an equation editor, an application that allows you to input mathematical equations. These equations can be used in written documents, webpages, databases, etc. They could be rendered graphically to the screen, to picture files, or to MathML - today's leading standard language for describing mathematics.

代码片段和文件信息
//This file is licenced under the GPL read the notice located at Main.cpp
#include “bmpHelper.h“
HBITMAP DSCreateDIBSection( DWORD dwX DWORD dwY WORD wBits );
BOOL DSStoreDIBSectionInBMPFile( LPTSTR szFileName HBITMAP hBitmap );
bool BMPHelper::initialize()
{
return true;
}
bool BMPHelper::terminate()
{
return true;
}
void BMPHelper::drawBMP(HDC hdc int x int y HBITMAP hbmp)
{
BITMAP bm;
Getobject(hbmp sizeof(BITMAP) &bm);
HDC hdcMem= CreateCompatibleDC(hdc);
Selectobject(hdcMem hbmp);
BitBlt(hdc x y bm.bmWidth bm.bmHeight hdcMem 00 SRCCOPY);
DeleteDC(hdcMem);
}
void BMPHelper::saveBMP(const wchar_t* filename RECT rect int bpp)
{
HDC hdc= GetDC(HWND_DESKTOP);
HDC hdcMem= CreateCompatibleDC(hdc);
HBITMAP hbmp= DSCreateDIBSection(rect.right rect.bottom bpp);
Selectobject(hdcMemhbmp);
BitBlt(hdcMem 0 0 rect.right rect.bottom hdc rect.left rect.top SRCCOPY);
DSStoreDIBSectionInBMPFile((wchar_t*)filename hbmp);
Deleteobject(hbmp);
DeleteDC(hdcMem);
DeleteDC(hdc);
}
void BMPHelper::clipBoardBMP(RECT rect)
{
HDC hdc= GetDC(HWND_DESKTOP);
HDC hdcMem= CreateCompatibleDC(hdc);
HBITMAP hbmp= CreateCompatibleBitmap(hdc rect.right rect.bottom);
Selectobject(hdcMemhbmp);
BitBlt(hdcMem 0 0 rect.right rect.bottom hdc rect.left rect.top SRCCOPY);
OpenClipboard(hwnd);
EmptyClipboard();
SetClipboardData(CF_BITMAP hbmp);
CloseClipboard();
Deleteobject(hbmp);
DeleteDC(hdcMem);
DeleteDC(hdc);
}
void BMPHelper::clipBoardEMF(RECT rect int height int width int bpp)
{
height = width*rect.bottom/rect.right;
HDC hdc = GetDC(HWND_DESKTOP);
HDC hdcMem = CreateCompatibleDC(hdc);
HBITMAP hbmp = DSCreateDIBSection(rect.right rect.bottom bpp);
Selectobject(hdcMemhbmp);
BitBlt(hdcMem 0 0 rect.right rect.bottom hdc rect.left rect.top SRCCOPY);
RECT mrect = { 0 0 (int)(width*26.6) (int)(height*26.6)};
if (settings.getCopyType()==EMF2003_COPY)
{
mrect.right = (width * GetDeviceCaps(hdc HORZSIZE) * 100)/GetDeviceCaps(hdc HORZRES);
mrect.bottom = (height * GetDeviceCaps(hdc VERTSIZE) * 100)/GetDeviceCaps(hdc VERTRES);
}
HDC hdcmeta = CreateEnhmetaFile(hdc NULL &mrect NULL);
SIZE size;
BITMAP bmpinfo;
GetBitmapDimensionEx(hbmp &size);
Selectobject(hdcMemhbmp);
Getobject(hbmp sizeof(BITMAP) &bmpinfo);
int widthb = width;
int heightb = height;
if (settings.getCopyType()==EMF2000_COPY)
{
int nMapMode = GetMapMode(hdc);
SetMapMode(hdcMM_HIMETRIC);
POINT points[1] = {width height};
DPtoLP(hdc&points[0]1);
SetMapMode(hdcnMapMode);
int xExt = MulDiv(width 2540 GetDeviceCaps(hdc LOGPIXELSX));
int yExt = MulDiv(height 2540 GetDeviceCaps(hdc LOGPIXELSY));
widthb = (int)((double)width*xExt/(double)points[0].x);
heightb = (int)(-(double)height*yExt/(double)points[0].y);
}
StretchB
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 45056 2004-09-04 11:06 BMP2PNG.EXE
文件 5302 2008-05-06 20:38 changelog.txt
文件 832 2007-02-25 01:09 DefaultSettings.xm
文件 137469 2008-05-07 12:56 Documentation.chm
目录 0 2008-04-21 22:41 Examples\
文件 6186 2007-04-09 00:41 Examples\0 - Basics.xm
文件 4121 2006-01-18 23:41 Examples\1 - st
文件 4824 2007-04-09 00:52 Examples\2 - Advanced.xm
文件 7929 2007-09-29 12:26 Examples\3 - Matrix.xm
文件 18000 2005-05-21 11:07 Examples\4 - Mathcasting.xm
文件 93644 2007-02-18 09:43 Examples\Calulus 2.xm
文件 8871 2006-03-29 00:54 Examples\Convolution.xm
文件 56220 2005-06-13 00:40 Examples\Electricity.xm
文件 1567 2005-05-27 00:49 Examples\Energy.png
文件 22876 2004-10-14 05:09 Examples\Laplace.xm
文件 10456 2005-11-07 17:49 Examples\Maxwell.xm
文件 7088 2006-04-04 04:44 Examples\Motor.emf
文件 16694 2005-05-27 00:48 Examples\Power.bmp
文件 1111 2007-05-19 03:13 Examples\Schrodinger.mml
文件 13824 2005-01-23 10:43 Examples\Vector Poynting.xm
目录 0 2008-05-06 19:38 Interface\
文件 429570 2005-01-14 09:15 Interface\3D.png
文件 3126 2004-06-24 10:07 Interface\add.bmp
文件 2235 2004-07-18 21:04 Interface\back.png
文件 4723 2004-07-18 21:05 Interface\backbig.png
文件 8414 2004-07-02 12:59 Interface\cancel.bmp
文件 3126 2004-11-15 05:57 Interface\copy.bmp
文件 3126 2004-07-02 12:47 Interface\cut.bmp
文件 2386 2004-07-18 21:44 Interface\defaults.png
文件 3126 2004-07-02 12:47 Interface\delete.bmp
文件 2994 2007-10-03 16:05 Interface\Download.html
............此处省略203个文件信息
- 上一篇:kraken使用说明中文版
- 下一篇:反译小程序.rar
相关资源
- 由浅入深,蓝牙4.0/BLE协议栈开发攻略
- 国内一家大型软件公司内部的正规软
- silicon lab公司的收音IC SI47XX全套开发工
- 保险公司管理系统(前台界面)
- c 程序判断离散数学中命题公式
- 通信类大公司华为中兴公司面试题目
- 公司内部报价管理系统
- 公务员计算机专业考试要点整理
- Excel高效办公实例
- 数据结构课程设计 公园导游图
- 计算方法上机程序之龙贝格求积公式
- 公历(阳历)和农历(阴历)相互转
- 学生学历证明查询系统
- 通达信公式管理器密码破解
- 希捷公布USB外部硬盘解决方案
- 中网公司联合Intel推出中小企业网络解
- vue+elmentui+ueditor +KityFormula数学公式 编
- 个人收集80%左右胜率的通达信公式合
- 带有彩色玻璃冷凝液的偶极Wilson线性
- 2019程序员互联网公司最新面经包含腾
- 前端Vue+Node+MongoDB高级全栈开发
- IP集群解决方案 助力公安“无处不
- 安徽省烟草公司奔向电子商务
- 扎努西电气机械天津压缩机有限公司
- 铁通天津分公司宽带城域网案例
- 山东省高速公路收费高可用备份系统
- 如何通过VMware虚拟桌面及NetApp存储管
- 四川省移动通信公司BOSS项目集中式数
- 美国飞康软件公司持续数据保护(C
- 某公司PIX 520防火墙系统和NAT的实施
评论
共有 条评论