You can draw the watermark at a specified location and with a specified size by creating a Rectangle and passing it to Graphics.DrawImage():
http://msdn.microsoft.com/
Something like:
Dim sz As New Size(Watermark.Width * 0.8, Watermark.Height * 0.8)
Dim rc As New Rectangle(New Point(imgOutWidth / 2 - sz.Width / 2, imgOutHeight / 2 - sz.Height / 2), sz)
g.DrawImage(Watermark, rc)
Main Topics
Browse All Topics





by: ToddBeaulieuPosted on 2009-07-31 at 15:49:22ID: 24993057
I don't know if this is the only way to do it, but I was intrigued by this one. It obtains a thumbnail from the original, using the new size you specify.
posts/show /4336
http://snippets.dzone.com/