LEADTOOLS Support
General
General Questions
Problem creating New RasterImage after v17 upgrade
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, March 28, 2011 7:08:47 AM(UTC)
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?
#2
Posted
:
Monday, March 28, 2011 7:10:13 AM(UTC)
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)
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)
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)
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)
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.
LEADTOOLS Support
General
General Questions
Problem creating New RasterImage after v17 upgrade
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.