주석처리좀 해주세요.
민G
제가 마침내 png 파일로 작업된 그림파일에 투명선처리 된 부분을 실제로 투명하게 하는 소스를 얻었습니다!Public Shared Function Transparent(ByVal im As Image) As System.Drawing.Drawing2D.GraphicsPath
Dim x As Integer
Dim y As Integer
Dim bmp As New Bitmap(im)
Dim gp As New System.Drawing.Drawing2D.GraphicsPath()
Dim mask As Color = bmp.GetPixel(0, 0) For x = 0 To bmp.Width - 1
For y = 0 To bmp.Height - 1
If Not bmp.GetPixel(x, y).Equals(mask) Then
gp.AddRectangle(New Rectangle(x, y, 1, 1)) End If
Next
Next
bmp.Dispose()
Return gp
End FunctionPrivate Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim gp As System.Drawing.Drawing2D.GraphicsPath = Transparent(dark.Image)
dark.Region = New System.Drawing.Region(gp)
End Sub다음이 그 소스인데요, 도대체 뭔 뜻인지 모르겠네요, 주석처리좀 해주세요.