Solved

Diagonal Watermark On Multiple Images?

Posted on 2009-07-01
3
662 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

777 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