Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, May 21, 2008 6:40:52 AM(UTC)

GregR  
GregR

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
File Attachment(s):
NET - v15 - UseDpi GDI Drawing.zip (16kb) downloaded 213 time(s).
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, June 25, 2012 4:08:15 AM(UTC)

Ibrahim  
Guest

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.
File Attachment(s):
CS_v175_UseDpi_GDI_Drawing.zip (13kb) downloaded 214 time(s).
 
#3 Posted : Thursday, July 12, 2012 6:18:01 AM(UTC)

Daoud  
Daoud

Groups: Registered
Posts: 256


I've updated this project to use VB.NET with LEADTOOLS v17.5 in MS-VS2008.
File Attachment(s):
VB_v175_UseDpi_GDI.zip (11kb) downloaded 215 time(s).
 
#4 Posted : Friday, February 17, 2017 4:46:50 PM(UTC)

Joe Z  
Joe Z

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.

File Attachment(s):
CS_V19_UseDpi_GDI_Drawing.zip (12kb) downloaded 186 time(s).

Edited by moderator Tuesday, March 21, 2017 10:53:59 AM(UTC)  | Reason: Not specified

Joe Zhan
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.077 seconds.