图像中带有怪异边框的无聊形式 [英] Bordless Form with a weird border in a image

查看:94
本文介绍了图像中带有怪异边框的无聊形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我有一个问题,我想你们也许可以帮助我.

每当我尝试创建无图像的表单时,图像边框将始终保持怪异状态,例如无抗锯齿".东西.

http://s10.postimage.org/n3uehx553/Capture.png

为此,我仅将背景图像设置为此png图像(http://s12.postimage.org/ufpe2nt6j/test.png),将BackColor和TransparencyKey设置为Lime颜色,并将FormBorderStyle设置为"None" ;.

也许我做错了,我不知道,所以我希望你们能帮助我.

谢谢.

Well, i have a problem and i think you guys maybe can help me.

Every time i try to create a form bordless with a image, the image border will always stay weird, something like a "No Anti-Aliasing" thinging.

http://s10.postimage.org/n3uehx553/Capture.png

To make this i only set the background image to this png image( http://s12.postimage.org/ufpe2nt6j/test.png ), set the BackColor and the TransparencyKey to the color Lime and i set the FormBorderStyle to "None".

Maybe i''m doing something wrong, i don''t know, so i hope you guys can help me.

Thanks.

推荐答案

将BackColor和TransparencyKey设置为此颜色,您会看到一个红色边框:
R = 254
G = 0
B = 0

现在,您可以考虑:为什么R值不为255?".
如果将BackColor和TransparencyKey的R值设置为255,
这将隐藏您的背景图片,因为您图片的背景颜色是红色.因此,您需要将其设置为254.

希望这会有所帮助.
Set the BackColor and the TransparencyKey to this color, and you will see a red border:
R = 254
G = 0
B = 0

Now, you can think: "Why is the R value not 255?".
If you set the R value of the BackColor and the TransparencyKey to 255,
this will hide your background image, because the background color of your image is red. So, you need to set it to 254.

Hope this helps.


这篇关于图像中带有怪异边框的无聊形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆