Sign in to follow this  

TGA editor, delphi, alpha byte - doesnt work

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

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