Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

MarkoBarko

Converting 24-bit images to 16-bit

This topic is 6111 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I do not need to code this but I will if I have to. I have been playing with Photoshop for hours and I cant figure out how to do this stupid conversion. Anyone know of any other tools that will do this? If not, can you point me to some sample code or tutorial... (I understand the error-diffusion method but I would rather not put the required effort into writing the code, when I could just get a program like Photoshop to do it or cut/paste someone elses code) Thanks

Share this post


Link to post
Share on other sites
Advertisement
I could be wrong, but I don''t know if there are even any 16 bit image formats... I think 16-bits is only used by hardware.

Someone please correct me if I''m (very possibly) wrong.

Share this post


Link to post
Share on other sites
quote:
Original post by xjaspeersx
I could be wrong, but I don''t know if there are even any 16 bit image formats... I think 16-bits is only used by hardware.

Someone please correct me if I''m (very possibly) wrong.


TGA supports 16-bit colors. I''m sure there are other formats that support it too.

Share this post


Link to post
Share on other sites
I think Photoshop doesn''t support 16bpp.
It''s either RGB(A) or paletted/indexed.

On the other hand, it can load 16bpp images. I think it will treat them as RGB/24bpp, but I don''t know what happens if you save them.

Try using another program, like PaintShop Pro. I know it supports 15 and 16bpp images.

Share this post


Link to post
Share on other sites
Doesn''t the 16bpp format depend on the graphics card h/w? (5-6-5, 5-5-5) I thought that the
number of bits assigned for green was not universal.

From what I''ve read, it seems that most people create 24bpp graphics and convert them to
16bpp in their load routine.

The graphic card is queried during initialization to determine which bit format it uses, then each pixel
color is calculated by right shifting each RGB value 3 bits (2 for green in the case of 5-6-5 format)

Share this post


Link to post
Share on other sites
quote:
Original post by Blaster
I think Photoshop doesn''t support 16bpp.
It''s either RGB(A) or paletted/indexed.



You can save an RGB image as a 16bpp TGA file in Photoshop 6. I don''t know about earlier versions.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!