W
wyismail
Unregistered / Unconfirmed
GUEST, unregistred user!
是这样的,我用扫描描仪扫的图片有些点或者线,要自己去掉
if Clering then
begin
with image1.Canvas do
begin
Pen.Mode := pmCopy;
Brush.Style:= bsClear;
Brush.Color:=clWhite;
FillRect(rect((x-4),(y-4),(x+4),(y+4)));
//Eraser(tem); //
end;
end;
上面是MOUSEMOVE 方法中的代码,在MOUSEDOWN,MOUSEUP分别写好了代码,
图片可以修改,但是一刷新如IMAGE1.REFRESH 就又调用原来的图片
而且image1.Picture.Bitmap.SaveToFile('c:/wy13.bmp');
保存的也是以前的图片,
请帮帮忙啊,到第怎么样才能做成橡皮擦?
if Clering then
begin
with image1.Canvas do
begin
Pen.Mode := pmCopy;
Brush.Style:= bsClear;
Brush.Color:=clWhite;
FillRect(rect((x-4),(y-4),(x+4),(y+4)));
//Eraser(tem); //
end;
end;
上面是MOUSEMOVE 方法中的代码,在MOUSEDOWN,MOUSEUP分别写好了代码,
图片可以修改,但是一刷新如IMAGE1.REFRESH 就又调用原来的图片
而且image1.Picture.Bitmap.SaveToFile('c:/wy13.bmp');
保存的也是以前的图片,
请帮帮忙啊,到第怎么样才能做成橡皮擦?