Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Leadtools.ImageProcessing.ResizeCommand requires a different parameter for 64bit compilation
Started by bvpd at 06-22-2008 22:10. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  06-22-2008, 22:10
bvpd is not online. Last active: 6/23/2008 3:01:35 AM bvpd

Not Ranked
Joined on 06-23-2008
Posts 1
Leadtools.ImageProcessing.ResizeCommand requires a different parameter for 64bit compilation
Reply Quote
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)
   Report 
  06-23-2008, 12:30
GregR is not online. Last active: 11/17/2008 11:10:19 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,706
Re: Leadtools.ImageProcessing.ResizeCommand requires a different parameter for 64bit compilation
Reply Quote
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;



Greg Ross
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » Developer » DotNet » Leadtools.ImageProcessing.ResizeCommand requires a different parameter for 64bit compilation

Powered by Community Server, by Telligent Systems