The tutorial is going to show you how to write overlapped image by using CoolWatermark SDK. The following code snippet will write the CoolWatermark icon to the rose picture.
1: Dim image As Image = System.Drawing.Image.FromFile("Rose.jpg")
2: Dim writer As New IC.CoolWatermark.Writer(image)
3:
4: Dim overlapped As Image = System.Drawing.Image.FromFile("CoolWatermark.gif")
5:
6: writer.PositionStyle = PositionStyle.MiddleCenter
7: image = writer.WriteImage(overlapped)
8: writer.Dispose()
1: System.Drawing.Image image = System.Drawing.Image.FromFile( "rose.jpg");
2: IC.CoolWatermark.Writer writer = new IC.CoolWatermark.Writer(image);
4: System.Drawing.Image overlapped = System.Drawing.Image.FromFile( "CoolWatermark.gif");
6: writer.PositionStyle = IC.CoolWatermark.PositionStyle.MiddleCenter;
7: image = writer.WriteImage(overlapped);
8:
9: writer.Dispose();
The following figure is the result after setting Opacity = 50
The following figure is the result after using Angle = 45
If you feel this page can be improved or has any mistake, please enter your valuable opinion here. Or if you cannot find the information you are after, feel free to suggest a subject too. I appreciate any voice.
Your Name: Your Email Address: Comments: