Solved

Diagonal Watermark On Multiple Images?

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

679 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