LEADTOOLS Support
Imaging
Imaging SDK Examples
HOW TO: Translate Bitmap and Client Coordinates When UseDpi = true and Draw With GDI+
#1
Posted
:
Wednesday, May 21, 2008 6:40:52 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
When using RasterImageViewer.UseDpi = true, converting to and from bitmap and client coordinates can be difficult since the conversion LEADTOOLS does when painting is completely internal. You must take an additional step in your coordinate conversions on top of what the Leadtools.Transformer class does for you. I've attached a .NET 2.0 C# LEADTOOLS v15 example that shows how to:
1. Properly convert from client to bitmap coordinates when UseDpi = true
2. Capture mouse events and draw lines on the image using the System.Drawing.Graphics class
#2
Posted
:
Monday, June 25, 2012 4:08:15 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
I've updated this project to use the LEADTOOLS v17.5 in C# using Visual Studio 2008.
Note: In the code, you should change the path of the image in the codecs.Load() method, or set the working directory of the project to the path of the image.
#3
Posted
:
Thursday, July 12, 2012 6:18:01 AM(UTC)
Groups: Registered
Posts: 256
I've updated this project to use VB.NET with LEADTOOLS v17.5 in MS-VS2008.
#4
Posted
:
Friday, February 17, 2017 4:46:50 PM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 63
Thanks: 2 times
Was thanked: 4 time(s) in 4 post(s)
I have updated this project to work with LEADTOOLS v19 using C# and Visual Studio 2015.
Edited by moderator Tuesday, March 21, 2017 10:53:59 AM(UTC)
| Reason: Not specified
Joe Zhan
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Imaging
Imaging SDK Examples
HOW TO: Translate Bitmap and Client Coordinates When UseDpi = true and Draw With GDI+
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.