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 : Monday, March 28, 2011 7:08:47 AM(UTC)
johnreichert

Groups: Registered
Posts: 47


Hi -

We just upgraded to LEAD version 17 from version 16.5.  We use VB.net.  In version 17, creating a New RasterImage from a System.Drawing.Image no longer works as it did in version 16.5.  The code given below works in version 16.5, but won't compile in version 17:

      Dim plainImage As Image = My.Resources.testImage
      Dim rImage As New RasterImage(plainImage)

Is there another way to accomplish the same thing in version 17?
 

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, March 28, 2011 7:10:13 AM(UTC)
johnreichert

Groups: Registered
Posts: 47



I should add, the exact error reported by visual studio during the build process is:

Value of type 'System.Drawing.Image' cannot be converted to 'Leadtools.RasterImage'.

 
#3 Posted : Monday, March 28, 2011 9:01:18 AM(UTC)
johnreichert

Groups: Registered
Posts: 47


This page is informative for anyone facing the same issue:

http://www.leadtools.com/help/leadtools/v17/dh/to/leadtools.topics.drawing~topics.rasterimageandgdigdiplus.html


 
#4 Posted : Monday, March 28, 2011 12:10:13 PM(UTC)

Danny H  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

This can still be done we just changed how this occurs in V17.

This link shows how this would be done now.

http://www.leadtools.com/Help/LEADTOOLS/v17/DH/LD/Leadtools.Drawing~Leadtools.Drawing.RasterImageConverter~ConvertFromImage.html
 
#5 Posted : Tuesday, March 29, 2011 5:31:47 AM(UTC)
johnreichert

Groups: Registered
Posts: 47


Thank you - is there any document that summarizes the major areas where "...we just changed how this occurs in v17..." bits where things are different in version 17 from version 16.5?  That would make it easier to track some of these issues down.
 
#6 Posted : Tuesday, March 29, 2011 8:02:36 AM(UTC)

Danny H  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

You can find this in the "version history" section of the installed help file.
 
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.226 seconds.