8bit fixed ppi raw ascii image save to image file

Just starting out? Need help? Post your questions and find answers here.
LiK137
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Jun 23, 2010 5:13 pm

8bit fixed ppi raw ascii image save to image file

Post by LiK137 »

There is a 8bit 500 ppi with known height and width raw ascii image data in memory.
After this image converted to PureBasic image handle using convertion to 24bit or 32 bit then saved to BMP or JPG file its resolution becomes 120ppi in BMP and 96ppi in JPG which is not wanted.
My question if there is a method handling this raw ascii data to image file with keeping 8bit and 500ppi withowt resizing?
I have tried all possible ways (all with convertion to 24/32bit) except GDI by converting existing 120ppi image to 500ppi which is not suitable.

Thanx in advance.