gdiplus 和 tcanvas 混合绘图?!

童心未泯的cuzn 2007-04-12 09:14:33
请问如何在一个canvas上同时用gdiplus和canvas自己的方法来画图?
...全文
354 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
我来看看CB 2007-05-29
  • 打赏
  • 举报
回复
学习
13661023811 2007-05-29
  • 打赏
  • 举报
回复
gdiplus 是在gdi上发展起来的,可以直接用。

以下是我程序的部分判断,将就看吧!

Gdiplus::Graphics g( Image1->Canvas->Handle );
g.Clear(Gdiplus::Color::Black);
Pen pen( Gdiplus::Color( 180, 250, 250, 250 ), 1 );
SolidBrush sbrush(Gdiplus::Color( 128, 255, 0, 120 ) );

SolidBrush blackBrush(Gdiplus::Color(255, 0, 255, 0));
Gdiplus::Font myFont(L"Arial", 10);
PointF origin;
g.DrawRectangle(&pen,p->x1,p->y1,p->x2-p->x1,p->y2-p->y1);
g.FillRectangle( &sbrush, p->x1,p->y1,p->x2-p->x1,p->y2-p->y1);

....
Image1->Canvas->Rectangle(leftup.x,leftup.y,rightdown.x,rightdown.y);
daily66 2007-04-18
  • 打赏
  • 举报
回复
有技术难度,分太少了
  • 打赏
  • 举报
回复
需要解决实际问题,不需要变通。
Y___Y 2007-04-12
  • 打赏
  • 举报
回复
这个没试过
为什么要用两种,这样必定麻烦且容易混淆

604

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder VCL组件使用和开发
社区管理员
  • VCL组件使用和开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧