image - VB.NET watermark on a picture -
i asked earlier way add watermark picture using visual basic . , managed find way , seems need code option make user select coordinates of new watermark position on picture.
here code
dim image1 new bitmap(openfiledialog1.filename) dim image2 new bitmap(picturebox1.image) dim result new bitmap(math.max(image1.width, image2.width), _ image1.height + image2.height) dim gresult 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
i found way . can use 2 pictureboxes , add code move watermark picturebox . can save @ end using screenshot method .
Comments
Post a Comment