TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Pavel
1.6k
170
51.1k
GDI+ application - change system coordinate origin
Sep 13 2012 10:39 AM
Hello,
In my GDI+ application I create graphics (rectangles, circles and text) on the panel
pnl
. For graphical object I need to move the origin from
top-left
to
bottom-left
corner.
The solution is to apply consequently 2 transforms
ScaleTransform
and
TranslateTransform
to the
Graphics
object.
Graphics dc = pnl.CreateGraphics();
dc.ScaleTransform(1.0f, -1.0f);
dc.TranslateTransform(0.0f, -pnl.Height);
But in this way the text is mirrored !!!
Is there a simple way to resolve a problem?
Thanks in advance.
Pavel.
Reply
Answers (
7
)
Array of Panels - radiobuttons are invisible
Create Image Editor in c# like windows Ac Dc software ??