Loading...

ConvertTo1BppFast

Discussions about image processing in GdPicture.NET using GdPictureImaging.

ConvertTo1BppFast

Postby francis » Tue May 10, 2011 7:01 pm

Hello,

I do convert a multipage tiff file from colour to black and white like this:

int ImageID = l_gdPictureImaging.TiffCreateMultiPageFromFile(p_nomFichierSrc);
for (int i = 0; i < l_gdPictureImaging.TiffGetPageCount(ImageID); i++)
{
l_gdPictureImaging.TiffSelectPage(ImageID, i + 1);
l_gdPictureImaging.FxBlackNWhite(ImageID, BitonalReduction.OrderedDither);
l_gdPictureImaging.ConvertTo1BppFast(ImageID);
}
l_gdPictureImaging.TiffSaveMultiPageToFile(ImageID, l_nomFichierDst, TiffCompression.TiffCompressionCCITT4);
l_gdPictureImaging.ReleaseGdPictureImage(ImageID);

This work fine normally. But on some machine, some conversion do generate a very bad black and white image, as you can see in the attached document. The same image converted on another machine does not have tis problem....

Any idea ?

Thanks
Francis
Attachments
badconvertion.png
francis
 
Posts: 2
Joined: Fri Dec 17, 2010 4:32 pm

Re: ConvertTo1BppFast

Postby Loïc » Wed May 11, 2011 11:53 am

Hi,

I can not explain why there is a difference between 2 computer. it should not since we just use pure C++ code with no randomized data...

Are you using the latest version ?

If the problem persists, I will ask you to create a support ticket on our helpdesk plateform giving some details about the configuration you are using, and attaching the original image. See: http://support.gdpicture.com

Kind regards,

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


Return to Image Processing

Who is online

Users browsing this forum: No registered users and 0 guests