Jump to content
Sign in to follow this  
Rocky

Playing with the colors in 1555 mode

Recommended Posts

In a ELEMENT_STATIC_IMAGE, I would like to display a grey area with a variable level of grey.I tried to do that by modifying the image content through image_data.final. First I read the format, which is always IMAGE_15_BIT (1555), then I change to bytes of the image to set the red, green and blue values (each of them is on 5 bits) as required to obtain the desired level of grey.But it doesn't work. I get very strange results, strange color variations instead of levels of grey. Does it mean FS transform the 1555 format into its own color-table model? If so, it means I can not do what I want here... Any idea?Thank you,Eric

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...