Solved

Diagonal Watermark On Multiple Images?

Posted on 2009-07-01
3
665 Views
Last Modified: 2012-05-07
I've been searching EE and have found many links to add a simple 'Horizontal' watermark. However, I would like to place a 'Diagonal' watermark on several hundred images. I would like to build a C# project that will do this.. Help...
0
Comment
Question by:pointeman
3 Comments
 
LVL 70

Assisted Solution

by:Éric Moreau
Éric Moreau earned 200 total points
ID: 24754540
0
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 300 total points
ID: 24755189
Just use RotateTransform() on your Graphics....

A simplified example:

            Bitmap bmp = new Bitmap(pictureBox1.Image);
            using(Graphics G = Graphics.FromImage(bmp))
            {
                G.RotateTransform(45);
                G.DrawString("Rotated Hello World!", this.Font, Brushes.Black, 0, 0);
            }
            pictureBox1.Image = bmp;
0
 

Author Closing Comment

by:pointeman
ID: 31598768
emoreau provided an excellent project link and Idle_Mind provided acurate code. I combined the two and wala Diagonal text.  Thank you...
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question