LEADTOOLS Support
Imaging
Imaging SDK Questions
Leadtools.ImageProcessing.ResizeCommand requires a different parameter for 64bit compilation
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Sunday, June 22, 2008 5:05:06 PM(UTC)
Groups: Registered
Posts: 1
Hi,
We develop on a 32bit platform and deploy on a 64bit platform and have found that we have to add the following compiler directive otherwise we encounter runtime errors with the 0 in 64bit and compile errors with the 0l in 32bit.
resizeCommand.DestinationImage = new RasterImage(RasterMemoryFlags.Conventional,
(int)Math.Ceiling(originalStamp.BoundingRectangle.Width),
(int)Math.Ceiling(originalStamp.BoundingRectangle.Height),
sourceImage.BitsPerPixel,
sourceImage.Order,
sourceImage.ViewPerspective,
sourceImage.GetPalette(),
IntPtr.Zero,
#if _WIN64
0l
#else
0
#endif
);
Has this issue been logged / fixed at all?
Many thanks,
Tim (bvpd)
#2
Posted
:
Monday, June 23, 2008 7:25:29 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
What is the file version of Leadtools.dll that you are using?
Looking at your code, it appears that the problem is with the RasterImage constructor, not the ResizeCommand. Does it make any difference if you do sometihng like this instead?
RasterImage imgDst = new RasterImage(...)
resizeCommand.DestinationImage = imgDst;
LEADTOOLS Support
Imaging
Imaging SDK Questions
Leadtools.ImageProcessing.ResizeCommand requires a different parameter for 64bit compilation
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.