Loading...

ConvertTo24Bpp

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

ConvertTo24Bpp

Postby danaos » Tue Jul 10, 2007 1:38 pm

Hi Loic,

On the latest update of the gdpicture.ocx the function ConvertTo24Bpp
is giving me an error.

This is what used to work:

ole_newprint.TiffSelectPage(i)
ole_newprint.ConvertTo24Bpp()
ole_newprint.DrawTextBackColor("PAGE "+string(i) +"/"+string(itotal)+" "+details, 1, 1, 7, 1, ole_newprint.ColorGetARGBValueFromARGB(255, 255, 255, 255),"Arial",ole_newprint.ColorGetARGBValueFromARGB(255, 0, 0, 0),false)
ole_newprint.TiffSaveAsNativeMultiPage (outTiff,2)

I am using black and white tiff (multipage) images.
Why do I need to call ConvertTo24Bpp() ??
Users are complaing that the print files are very big.
A 20Kbytes 2 page Tiff will sent to the printer as 1MB print.
Can you please help?

Regards,
Frank
danaos
 
Posts: 2
Joined: Thu Jul 05, 2007 2:03 pm

Postby Loïc » Wed Jul 11, 2007 12:14 pm

Hi,

On the latest update of the gdpicture.ocx the function ConvertTo24Bpp
is giving me an error.



What is this error ?



Why do I need to call ConvertTo24Bpp() ??


If you want to draw text into an indexed palette colors image you need to convert it to 24bpp first.


A 20Kbytes 2 page Tiff will sent to the printer as 1MB print.



Did you convert the native image to 24 bpp first ?


Best regards,

Loïc
Last edited by Loïc on Wed Jul 11, 2007 12:36 pm, edited 1 time in total.
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 danaos » Wed Jul 11, 2007 12:25 pm

I get by my program an exeption that the function did not execute.
The older version was ok.

>>If you want to draw text into an indexed palette colors image you need to convert it to 24bpp first.

But the image is a black and white tiff, and I wish to draw a black and white text, there are no other colors...so why?

>>Did you convert the native image to 24 bpp first ?
YES!

You can see what I am doing in the code I have sent..

I can send you the tiff file for you to test and see also.

Regards,
Frank
danaos
 
Posts: 2
Joined: Thu Jul 05, 2007 2:03 pm

Postby Loïc » Wed Jul 11, 2007 12:53 pm

I get by my program an exeption that the function did not execute.
The older version was ok.


It is strange it is working fine for me.

What programing language are you using ?



But the image is a black and white tiff, and I wish to draw a black and white text, there are no other colors...so why?


It is a complicated problem which come from the gdiplus.dll api.
To resume, if you want to draw shapes, text, image and other object into an image you have to use a non indexed-color palette with old version of gdiplus.dll.

Did you convert the native image to 24 bpp first ?
YES!



Size of uncompressed 24bpp image = 24 * size of uncompressed 1bpp image.

You can try to convert the image to 1bpp before the print process.


I can send you the tiff file for you to test and see also.


ok: esupport (at) gdpicture (dot) com.


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


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 2 guests

cron