Croping an image
in
Programming Questions
•
1 year ago
Heyho,
first of all, sorry for my bad english :<
Im trying to programm a little game, where i need some interfacegraphics.
The red color of the brain (image attached) shall get smaller, if the player gets hit.
map() should be a good option for that, but i have to crop the image of the brain and not just change the width..
Any ideas how to solve that? Is there a function, which crops my image :o?
http://www.abload.de/image.php?img=problemzkkd6.jpg#
tldr; the red brain shall change his width by cutting the rest and not by deforming.
greets
Philipp
first of all, sorry for my bad english :<
Im trying to programm a little game, where i need some interfacegraphics.
The red color of the brain (image attached) shall get smaller, if the player gets hit.
map() should be a good option for that, but i have to crop the image of the brain and not just change the width..
Any ideas how to solve that? Is there a function, which crops my image :o?
http://www.abload.de/image.php?img=problemzkkd6.jpg#
tldr; the red brain shall change his width by cutting the rest and not by deforming.
greets
Philipp
1