1
我之前問過如何使用visual basic爲圖片添加水印。並感謝所有我設法找到方法的人,但現在看起來我需要一個代碼來讓用戶選擇圖片上新水印位置的座標。圖片上的VB.NET水印
這裏是我的代碼
Dim Image1 As New Bitmap(OpenFileDialog1.FileName)
Dim Image2 As New Bitmap(PictureBox1.Image)
Dim Result As New Bitmap(Math.Max(Image1.Width, Image2.Width), _
Image1.Height + Image2.Height)
Dim gResult As Graphics = Graphics.FromImage(Result)
gResult.DrawImage(Image1, New Point(0, 0))
gResult.DrawImage(Image2, New Point(0, Image1.Height))
gResult.Dispose()
gResult = Nothing
PictureBox5.Image = Result