您的位置:程序门 -> vc/mfc -> 图形处理/算法



怎么样根据绘制的一连串图形在有限的rect中动态显示出来


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


怎么样根据绘制的一连串图形在有限的rect中动态显示出来
发表于:2007-01-10 11:57:40 楼主
描述的不清楚请原谅,多给点提示。先谢谢
发表于:2007-01-11 18:39:001楼 得分:0
声明一个bmp,里面有你所有的图像
bool   bitblt(
    hdc   hdcdest,   //   handle   to   destination   dc
    int   nxdest,     //   x-coord   of   destination   upper-left   corner
    int   nydest,     //   y-coord   of   destination   upper-left   corner
    int   nwidth,     //   width   of   destination   rectangle
    int   nheight,   //   height   of   destination   rectangle
    hdc   hdcsrc,     //   handle   to   source   dc
    int   nxsrc,       //   x-coordinate   of   source   upper-left   corner
    int   nysrc,       //   y-coordinate   of   source   upper-left   corner
    dword   dwrop     //   raster   operation   code
);

  int   nxdest,int   nydest这两个值表示图像显示的位置,不用动
  int   nxsrc,   int   nysrc   这两个值表示原bmp图片中显示图像的位置,改它
  height和width不用动,它是大小,自己看吧




快速检索

最新资讯
热门点击