PD Posted June 17, 2011 Author Share Posted June 17, 2011 Well I opened a PNG image up in paint and saved it as BMP so I could use it ingame. Making it BMP makes the image have a brown background colour. Im using Engine_BltToDC to draw the image into a picture box and want to know if I can get rid of the background colour? Link to comment Share on other sites More sharing options...
Robin Posted June 17, 2011 Share Posted June 17, 2011 You can't. Link to comment Share on other sites More sharing options...
PD Posted June 17, 2011 Author Share Posted June 17, 2011 Sucks. Link to comment Share on other sites More sharing options...
Robin Posted June 17, 2011 Share Posted June 17, 2011 The wonders of pre-rendering. Link to comment Share on other sites More sharing options...
Lavos Posted June 17, 2011 Share Posted June 17, 2011 Have you tried using a transparent chatbox while blting the image behind it? Link to comment Share on other sites More sharing options...
Robin Posted June 17, 2011 Share Posted June 17, 2011 @Lavos:> Have you tried using a transparent chatbox while blting the image behind it?Who mentioned a chatbox? :\ Link to comment Share on other sites More sharing options...
Lavos Posted June 17, 2011 Share Posted June 17, 2011 @Robin:> Who mentioned a chatbox? :\Hahahah my bad.@Zesh:> Well I opened a PNG image up in paint and saved it as BMP so I could use it ingame. Making it BMP makes the image have a brown background colour. Im using Engine_BltToDC to draw the image into a picture box and want to know if I can get rid of the background colour?what are you using the picturebox for? Maybe looking into "sub SetMaskColorFromPixel" might help you out.Note: transparent colors are set to 0,0 in parameter. Link to comment Share on other sites More sharing options...
Robin Posted June 17, 2011 Share Posted June 17, 2011 Lavos, please stop talking about things you don't understand.He specifically asked if you can mask in BltToDC. I already answered this. The answer is 'No.'Read the entire thread before posting next time. Contradicting me isn't a clever idea. Link to comment Share on other sites More sharing options...
Lavos Posted June 17, 2011 Share Posted June 17, 2011 @Robin:> Lavos, please stop talking about things you don't understand.> > He specifically asked if you can mask in BltToDC. I already answered this. The answer is 'No.'> > Read the entire thread before posting next time. Contradicting me isn't a clever idea.Sure Robin. Sry it has been a long day for me.@Zesh anyway Robin is right you can't use BltToDC, but what you can do is use Engine_BltFast and mask the color with SetMaskColorFromPixel to a picturebox. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now