Home : Image Processing : Create a watermark
Q10081 - HOWTO: Create a watermark

You can use the OverlayCommand to create a watermark using ApplyCommand in either the WorkspaceViewer, WebImageViewer, or Workspace objects.

AtalaImage myOverlay = new AtalaImage("c:\\myLogo.png");
WebImageViewer1.ApplyCommand(new OverlayCommand(myOverlay, new Point(10, 10)));

The image being overlayed can contain alpha transparency which will be alpha blended onto the bottom image.

Alternatively, if you need to overlay text onto an image, you can use the Canvas object to draw directly onto a 1-bit, grayscale, or RGB image or you can use .NET's GDI+ routines to draw a string onto an image.

Watermarking was demonstrated during our 31 apps in 31 days promotion. Here is a link:

http://www.atalasoft.com/cs/blogs/31appsin31days/archive/2008/05/05/when-one-watermarked-image-just-isn-t-enough.aspx

 

 

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.

Powered By InstantKB.NET v1.3
Copyright © 2002, 2017. InstantASP Ltd. All Rights Reserved