Jump to content
  • Advertisement
Sign in to follow this  

TGA editor, delphi, alpha byte - doesnt work

This topic is 4065 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

Hi, Im making a simple editor program that edits the .TGA images. It's feature to modify the alpha bytes. It would be great, unfortunatly when I save the TGA, the alpha bytes became 0. I know this, cuz saved in uncompressed verzion and check with an hexa editor. I use an external TGA unit. Some code: var Picture : TTargaImage; Picture:= TTargaImage.Create (nil); Picture.Targa.LoadFromFile ('asdasd'); Picture.Targa.Bitmap.Canvas.Pixels [EVERY X,Y COORDINATES]:= $22446688; Picture.Free; so it forgets the Alpha byte. How to sort it out? It does that even the original picture DOES HAVE alpha-mask.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!