想做异形窗体
SUISKIN的SUISKINFORM有这功能,可以随便选一张图片做窗体
但,窗体总是正正方方的,边角的地方去不掉我的图片是BMP格式的
如果是用IMAGE显示的话,
STRETCH:=TRUE边角的地方就会没了但SUISKINFORM没这属性,
怎么办????各位有没好的建议
SUISKIN的SUISKINFORM有这功能,可以随便选一张图片做窗体
但,窗体总是正正方方的,边角的地方去不掉我的图片是BMP格式的
如果是用IMAGE显示的话,
STRETCH:=TRUE边角的地方就会没了但SUISKINFORM没这属性,
怎么办????各位有没好的建议
解决方案 »
- INDY中的TIDTcpServer和TIDTcpClient有没有OnRead之类的事件?
- 三层中主键问题
- 有4张表,分别在一张纸上打印,4张同时打印才是完整的一份报表,请问如何设置
- 怎样注册ACCESS的ODBC?
- delphi dbchart 控件的使用方法 要比较全的(急,在线)
- 真的不想搞数据库了,有什么其他的出路吗?
- 新手问一个ADO的问题?UP有分!
- 如何在html中向activeForm 传递参数??
- 我的程序为什么设置了断点后就运行正常了?
- help me !
- 怎么调用WORD控件呀?会用SERVES的高手来解答呀!急~~~~~~~~~~~
- 大家谈了这么多三层,请问怎么样才算是将业务逻辑真正封装在中间层?
有什么好的控件能直接用最好
var
dc:hdc;
rgn:hrgn;
x,y,w,h:integer;
coord:tpoint;
line:boolean;
color:tcolor;
begin
dc:=getwindowdc(controlhandle);
beginpath(dc);
w:=canvas.cliprect.Right;
h:=canvas.ClipRect.Bottom;
for x:=0 to w-1 do
begin
line:=false;
for y:=0 to h-1 do
begin
color:=canvas.Pixels[x,y];
if color<>maskcolor then
begin
if not line then
begin
line:=true;
coord.X:=x;
coord.Y:=y;
end;
end;
if (color=maskcolor) or (y=h -1) then
begin
if line then
begin
line:=false;
movetoex(dc,coord.X,coord.Y,nil);
lineto(dc,coord.x,y);
lineto(dc,coord.x+1,y);
lineto(dc,coord.X+1,coord.Y);
closefigure(dc);
end;
end;
end;
end; endpath(dc);
rgn:=pathtoregion(dc);
releasedc(controlhandle,dc);
//////////////////////
if rgn<>0 then
begin
setwindowrgn(controlhandle,rgn,true) ;
end;end;