Loading...

problem with CropBorders2

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

problem with CropBorders2

Postby m.cordini » Tue Jul 10, 2007 11:38 am

Hi Loic... I'm Back... :D

I've a little problem.... with image created with eztwain and cropborders
my image is scanning with 300 dpi... but with cropborders2(99,2) the image is 96 dpi...

the image created with eztwain is contained in a system.intptr called hdib and uses oGdPicture.CreateImageFromDIB(hdib.ToInt32) in order to create the image to crop
I use oGdPicture.TiffSaveAsNativeMultiPage(fileName, 2) and oGdPicture.TiffCloseNativeMultiPage() in order to save the image.

Can you helllllllllllllllllllpppppppppppp me... is very urgent...
:?

best regards

Marco
User avatar
m.cordini
 
Posts: 8
Joined: Mon Jun 25, 2007 11:41 am
Location: Piacenza ( Italy )

Postby Loïc » Tue Jul 10, 2007 4:08 pm

Hi Marco,

The problem doesn't came from the cropborders2() method.

It was the CreateImageFromDIB which made always 96 dpi image.

You have two solution:

1- Download the last edition.

or

2- Use The SetHorizontalResolution() and the SetVerticalResolution() methods after the CreateImageFromDIB() method to apply the desired resolutions.


Best regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4430
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Postby m.cordini » Tue Jul 10, 2007 4:38 pm

Loïc wrote:Hi Marco,

The problem doesn't came from the cropborders2() method.

It was the CreateImageFromDIB which made always 96 dpi image.

You have two solution:

1- Download the last edition.

or

2- Use The SetHorizontalResolution() and the SetVerticalResolution() methods after the CreateImageFromDIB() method to apply the desired resolutions.


Best regards,

Loïc

As usual the you are the best :)

thanks.....
User avatar
m.cordini
 
Posts: 8
Joined: Mon Jun 25, 2007 11:41 am
Location: Piacenza ( Italy )


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest

cron