Loading...

1bpp BMP file can't be printed

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

1bpp BMP file can't be printed

Postby ptspts » Thu Feb 10, 2011 9:25 pm

Hello,

I have an extremely simple routine that takes a 1-BPP source BMP, adds date and time, converts it back to 1-BPP, and saves it.

Code: Select all
               
oGdPicture.CreateImageFromFile FnameBMP
oGdPicture.DrawText Dte & " " & Left(Tme, 2) & ":" & Right(Tme, 2), 0, 0, 10
oGdPicture.ConvertTo1Bpp
oGdPicture.SaveAsBmp TempDir & TempNum & "A.bmp"
oGdPicture.CloseNativeImage


Prior to the addition of the code, the source BMP file was able to be viewed and printed from within the client's Eclipse software terminal client ETerm. The new BMP files will not print. The files can be viewed in other programs without issue.

Of course I say it's Eclipse's issue since the new files open elsewhere just fine, and of course they say it's mine since the old files worked fine. Is there something different/unique with the new BMP file header? Is there anything I can do about this? I've requested before and after BMP samples... I'll attach them if/when I receive them.

Thanks,
Dan
ptspts
 
Posts: 7
Joined: Mon Oct 25, 2010 6:15 pm

Re: 1bpp BMP file can't be printed

Postby Loïc » Sun Feb 13, 2011 8:26 pm

Hi,

Please attach image you are using for investigation.

Kind 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

Re: 1bpp BMP file can't be printed

Postby ptspts » Mon Feb 14, 2011 7:09 pm

I cannot upload .bmp file attachments; I get "The extension bmp is not allowed." I tried renaming to .bm_ with the same results. Please advise.

For what it's worth, If I open the before & after files in a hex editor, I notice that starting at offset 22h, the files differ.

According to this - http://en.wikipedia.org/wiki/BMP_file_format "Example of a 2×2 Pixel, 24-Bit Bitmap (Windows DIB Header BITMAPINFOHEADER)":

The before file has bytes in the "Size of the raw data in the Pixel Array (including padding)" section, but none in the "Horizontal physical resolution of the image" and "Vertical physical resolution of the image". The after file is just the opposite; it has nothing in the "Size of the raw data in the Pixel Array (including padding)" section, but has values in the "Horizontal physical resolution of the image" and "Vertical physical resolution of the image".
Last edited by ptspts on Mon Feb 14, 2011 7:16 pm, edited 1 time in total.
ptspts
 
Posts: 7
Joined: Mon Oct 25, 2010 6:15 pm

Re: 1bpp BMP file can't be printed

Postby Loïc » Mon Feb 14, 2011 7:11 pm

Hi,

Please just zip it.

Kind 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

Re: 1bpp BMP file can't be printed

Postby ptspts » Mon Feb 14, 2011 7:18 pm

see attached files. See my edited post above for the details.

Thanks for your help.
Dan
Attachments
test_files.zip
(1.25 KiB) Downloaded 31 times
ptspts
 
Posts: 7
Joined: Mon Oct 25, 2010 6:15 pm

Re: 1bpp BMP file can't be printed

Postby ptspts » Wed Feb 16, 2011 8:49 pm

Loïc, any ideas? I'd like to know the status of this issue, so I can tell the client that a fix is on the way, or come up with a work-around.

Thanks again,
Dan
ptspts
 
Posts: 7
Joined: Mon Oct 25, 2010 6:15 pm

Re: 1bpp BMP file can't be printed

Postby Loïc » Thu Feb 17, 2011 5:59 pm

Hi Dan,

Sorry for the delay. Unfortunately I will no be able to help on this issue. We use winAPI to encode BMP file. I have no doubt that our generated file are 100% compliant with the BMP format.
So I can just suggest to you to use another file format or to your software provider to bring serious BMP support.

Thank you for your comprehension.

kind 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 1 guest

cron