Make Oneself More Strong

mcs51a( 高兴就写点:-),不高兴就不写 )

#

EasySVGView 查看SVG 的小工具

    EasySVGView 是查看SVG spec1.1 文件的小工具,支持SVG 文件查看,缩放等操作,可以将SVG导出为EMF,PNG,TIF 等图像文件(svg2emf,svg2png,svg2tif)。
    使用GDIPLUS.dll 渲染SVG,目前是Pre2 版本,文本布局,滤镜支持不是很好,不支持动画.
  下载链接,
     http://www.cppblog.com/Files/mcs51a/easySvgView%20Pre2%202010-09-03.rar

   截图如下,
  
   
   

posted @ 2010-09-03 08:37 mcs51a 阅读(1953) | 评论 (2)编辑 收藏

VC cursor的位置(hot spot)

   被光标的位置,折腾了大半天.
   问题,在程序中客户区设置光标变为放大(Zoom out)光标.当放大光标(Zoom out)从客户区接近到Scrollview 的ScrollBar时,应该变成普通的Arrow 光标.但奇怪的是,非但没变,反而是越过Scrollbar ,才变成普通的Arrow 光标.
  查看代码中的OnSetCursor,SetCurosr 都不是问题,MSDN,Goole 一圈也没发现,有人遇到此问题.
  分析下,以为是光标大小问题,使用VC调整 Cursor资源,意外发现hot spot这个属性,将放大光标(Zoom out)的hot spot从(0,0)调整到最下面的点(28,28)位置,运行程序,正常

MSDN 上的介绍,

  
Setting a Cursor's Hot Spot 

The hot spot of a cursor is the point to which Windows refers in tracking the cursor's position. By default, the hot spot is set to the upper-left corner of the cursor (coordinates 0,0). The Hotspot property in the Properties window shows the hot spot coordinates.

To set a cursor's hot spot

  1. On the Image Editor toolbar, click the Set Hotspot tool.

  2. Click the pixel you want to designate as the cursor's hot spot.

    The Hotspot property in the Properties window displays the new coordinates.

    NoteTip

    Tool tips appear when you hover your cursor over a toolbar button. These tips can help you identify the function of each button.

For information on adding resources to managed projects, please see Resources in Applications in the .NET Framework Developer's Guide. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resources strings to properties, see Walkthrough: Localizing Windows Forms and Walkthrough: Using Resources for Localization with ASP.NET.

Requirements

None



posted @ 2010-08-11 09:22 mcs51a 阅读(1157) | 评论 (0)编辑 收藏

sqlite3 单条记录插入,更新速度慢的问题

    SQLITE 3 插入或更新一条数据的时间,可能达到100多MS。对于多条数据的批次插入或更新,可以使用事务的方法解决。如果只是插入单条数据,而且数据安全没那么重要(不怕断电,或系统意外关闭,丢掉数据),可以在open db 后执行sqlite3_exec(pdb,“PRAGMA synchronous = OFF; ”,0,0,&szErr);试试加快速度.

posted @ 2010-03-18 14:47 mcs51a 阅读(5404) | 评论 (0)编辑 收藏

图像的自动剪切 (Auto crop)

     摘要:       图像在处理过程中,有时需要去除一些无用的背景,限制处理范围,以提高图像下一步处理的速度。     下面这个函数主要实现了对二值化后的8位DIB查找范围的功能。其中参数c为背景的颜色.   1void FindBlankBound(LPBYTE src,&n...  阅读全文

posted @ 2010-02-07 08:36 mcs51a 阅读(416) | 评论 (0)编辑 收藏

仅列出标题
共2页: 1 2