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 : Sunday, June 22, 2008 5:05:06 PM(UTC)

bvpd  
bvpd

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)
 

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 23, 2008 7:25:29 AM(UTC)

GregR  
GregR

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;


 
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.050 seconds.