D
DickWu
Unregistered / Unconfirmed
GUEST, unregistred user!
我用下面的语句画虚线框:
OldColor := Canvas.Pen.Color;
OldMode := CanVas.Pen.Mode;
OldStyle := CanVas.Pen.Style;
Canvas.Pen.Color:= clBlack;
CanVas.Pen.Mode := pmNotXor;
CanVas.Pen.Style:= psDot;
Canvas.Rectangle(aRect.Left,aRect.top,aRect.right,arect.bottom);
Canvas.Pen.Color:= OldColor;
CanVas.Pen.Mode := OldMode;
CanVas.Pen.Style:= OldStyle;
但是发现在黑色和白色背景和下可以看见虚线,在clGray背景下却看不见虚线。
我需要一种在任何背景(比如各种背景色,或者各种彩色图片作背景)下都
可以清晰显示的虚线和虚线框的画法
有哪位大哥愿意帮帮我嘛?
OldColor := Canvas.Pen.Color;
OldMode := CanVas.Pen.Mode;
OldStyle := CanVas.Pen.Style;
Canvas.Pen.Color:= clBlack;
CanVas.Pen.Mode := pmNotXor;
CanVas.Pen.Style:= psDot;
Canvas.Rectangle(aRect.Left,aRect.top,aRect.right,arect.bottom);
Canvas.Pen.Color:= OldColor;
CanVas.Pen.Mode := OldMode;
CanVas.Pen.Style:= OldStyle;
但是发现在黑色和白色背景和下可以看见虚线,在clGray背景下却看不见虚线。
我需要一种在任何背景(比如各种背景色,或者各种彩色图片作背景)下都
可以清晰显示的虚线和虚线框的画法
有哪位大哥愿意帮帮我嘛?