Perturbatio: Thanks, I'll try it out and see how it goes.
Dreamora and AngelDaniel: Thanks, but that kinda was my original plan already. I just thought maybe there was a better way to do it :)
Edit: Just a bug I think, I tried it out with an image from my game, and it draws a single column of pixels at the end instead of the original position. It is swapped from somewhere else in the image. Also a question, how can I set it to work with different mask colors?
Dreamora and AngelDaniel: Thanks, but that kinda was my original plan already. I just thought maybe there was a better way to do it :)
Edit: Just a bug I think, I tried it out with an image from my game, and it draws a single column of pixels at the end instead of the original position. It is swapped from somewhere else in the image. Also a question, how can I set it to work with different mask colors?