フォームに画像を張り透過しようとしているのですが絵の周りが透過されませんなん何か解決方法はないでしょうか??
Private Sub Form1_Load(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Me.FormBorderStyle = FormBorderStyle.None
Dim bmp As New Bitmap("68cf8349.gif")
Dim transColor As Color = bmp.GetPixel(0, 0)
bmp.MakeTransparent(transColor)
Me.BackgroundImage = bmp
Me.BackColor = transColor
Me.TransparencyKey = transColor
End Sub
ちなにみ画像は拾ったものを使用しています。
透過する画像をMicrosoft Photo Editorなどの透過機能付きのソフトで
あらかじめ透過してはどうでしょうか
問題解決しました。
ありがとうがざいました。
ツイート | ![]() |