如何给图上的闭合区域着色,类似于Windows画图的‘用颜色填充’那个功能。
解决方案 »
- delphi調用oracle存儲過程,如何將末尾帶空格的參數傳入?
- 请教TAdoTable的Lookup类型的字段问题
- 使用控件EMS ADVANCD EXCEL Report导出excel时包括图片
- Function xxx:LRESULT,LRESULT是啥意思?
- 很急请大家帮忙,谢谢!
- TChartfx控件在哪里
- 请问哪有DELPHI中文版下载
- fsBold 等枚举类型以字符存如数据库,读出来的时候,如何转化为TsyleFont类型
- 大四了快毕业了,签不到"招人不招证"的单位,郁闷中...
- 通讯程序出现的问题
- 用Chart作了一个柱状图,在哪里连接数据库呢?
- 怎样解除celeon 4 1.7G 倍频锁定?BIOS的的倍频超频无效.
begin
Image1.Canvas.Ellipse(10,10,100,100);
Image1.Canvas.Rectangle(50,50,200,200);
end;procedure TForm1.Image1MouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
Image1.Canvas.Brush.Color := clRed;
Image1.Canvas.FloodFill(X,Y,clBlack,fsBorder);
end;
r.left:=image1.left;
r.top:=image1.top;
r.right:=image1.left+image1.width;
r.bottom:=image1.height+image1.top
image1.canvas.fillrect(r);