我正在做一个画图的程序,用了image.canvas,
请问,我要怎么清空已经画过了的canvas.
我的意思是当我想重新画的时候,我要先把以前画的东西删掉,不然,新画的东西就重在以前的上边了。怎么做呢?
请问,我要怎么清空已经画过了的canvas.
我的意思是当我想重新画的时候,我要先把以前画的东西删掉,不然,新画的东西就重在以前的上边了。怎么做呢?
解决方案 »
- 自定义标题栏组件有问题,大家进来了看看,见源码
- DLL窗体变成非激活时自动关闭.
- 求救,如何实现发票或报表上用户可手动调节字段的打印位置。
- 非常简单问题
- Memo控件的OnMouseDown或OnMouseUp事件中的X,Y值为什么每次点击同一地方时都不同,怎样才能得到准确不变的X,Y值?
- idhttp ssl Connection Closed Gracefully困扰好几天了
- 向sql any where 中存binary问题。
- 我的Access输入的是¥100.60,而保存的是¥100.5999,怎样用100.5999更改为100.60?
- 将文件保存到数据库的ole字段中的问题!
- delphi中强制类型转换怎么半如integer->byte?
- 郁闷的问题?=------------在线等待
- 怎么对多媒体播放器进行音量控制?
image1.Canvas.Brush.Color:=image1.Parent.Brush.Color;
image1.Canvas.FillRect(Rect);
index: integer;
begin
index := Row * DrawGrid1.ColCount + Col;
with Sender as TDrawGrid do
begin
Canvas.Brush.Color := clBackGround;
Canvas.FillRect(Rect);
ImageList1.Draw(Canvas,Rect.Left,Rect.Top,index);
if gdFocused in State then
Canvas.DrawFocusRect(Rect);
end;end;