怎么样使画出来的图形保留在窗口里不用重绘 我用了paintbox画图形,不过每次都要在paint事件里重绘,不然就会消息,画图时间比较长,看起来很不自然有没有办法在画过之后就不用重绘 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 重绘是必须的,不过如果绘制过程比较慢的话可以把画好的保存至内存,paint事件中直接从内存BitBlt 怎么画到内存里?不会刚学delphi,请指教~~ 画到image里; image.canvas....或者是 var bmp:TBitmap;begin bmp := tbitmap.create; bmp.width = 640; bmp.height = 480; bmp.canvas.... //画 最后用image 显示 image.picture.assign(bmp);end; 仔细看了一下,好像有些细节不对,最后还是用BitBlt比较好 bitmap := TBitmap.Create;bitmap.Height:=70;bitmap.Width:=70;bitmap.Canvas.FloodFill(0,0,clNone,fsSurface);bitmap.Canvas.Ellipse(t);windows.BitBlt(Canvas.Handle,10,10,70,70,bitmap.Canvas.Handle,0,0,windows.SRCCOPY);bitblt 是这样用的BOOL BitBlt( HDC hdcDest, // handle to destination device context int nXDest, // x-coordinate of destination rectangle's upper-left corner int nYDest, // y-coordinate of destination rectangle's upper-left corner int nWidth, // width of destination rectangle int nHeight, // height of destination rectangle HDC hdcSrc, // handle to source device context int nXSrc, // x-coordinate of source rectangle's upper-left corner int nYSrc, // y-coordinate of source rectangle's upper-left corner DWORD dwRop // raster operation code ); 如何判断是否assign了文件? 老板说要用Delphi,郁闷郁闷,散分散分,图个心情! 求学习方法及指导书籍。。。。 急急急~~~Delphi 连接oracle数据库,查询结果显示到dbgrid中 请问:如何删除文本文件中的一行。 数据库连接问题 QQ群:“潍坊程序员俱乐部”:5778839;欢迎高手加入。 帮忙用delphi写个二叉树中序遍历的程序 如何在Dbgrid中使用hint Delphi程序员有多少个抽烟的?昨天抽了我两包... 关于DHTMLEDIT控件和WINDOWS补丁的冲突 未公开的API如何在delphi中使用呢
不会刚学delphi,请指教~~
或者是
var bmp:TBitmap;
begin
bmp := tbitmap.create;
bmp.width = 640;
bmp.height = 480;
bmp.canvas.... //画
最后用image 显示
image.picture.assign(bmp);
end;
bitmap.Height:=70;
bitmap.Width:=70;
bitmap.Canvas.FloodFill(0,0,clNone,fsSurface);
bitmap.Canvas.Ellipse(t);
windows.BitBlt(Canvas.Handle,10,10,70,70,bitmap.Canvas.Handle,0,0,windows.SRCCOPY);
bitblt 是这样用的
BOOL BitBlt( HDC hdcDest, // handle to destination device context
int nXDest, // x-coordinate of destination rectangle's upper-left corner
int nYDest, // y-coordinate of destination rectangle's upper-left corner
int nWidth, // width of destination rectangle
int nHeight, // height of destination rectangle
HDC hdcSrc, // handle to source device context
int nXSrc, // x-coordinate of source rectangle's upper-left corner
int nYSrc, // y-coordinate of source rectangle's upper-left corner
DWORD dwRop // raster operation code
);