【发布时间】:2013-08-08 10:10:24
【问题描述】:
也许有人可以提供帮助,我正在尝试以一种形式显示一个透明的 PNG 作为启动屏幕。表格上的代码是:
Sub Form_Paint(ByVal s As Object, ByVal e As PaintEventArgs) Handles Me.Paint
Dim r As New Rectangle(0, 0, 728, 462)
Dim newBitmap As Bitmap
newBitmap = Bitmap.FromFile("Logo.png")
e.Graphics.DrawImage(newBitmap, r)
end sub
生成的图像带有难看的“羽毛”边框。见这里:
图像是 32 位 ARGB,边缘已被赋予透明度。这是嵌入网页中的 PNG:
有谁知道如何摆脱边界?
【问题讨论】:
-
这不是代码问题,而是设计问题。错误的地方。
-
不这么认为,检查上面的编辑