Hello!
I need help, I'd like to know, in your opinion, what would be the best way to make a masking script?
For those who don't know what masking are, here's an exemple.
First of all, you need a bitmap to be masked:
http://img127.imageshack.us/img127/2880/exemple1bh5.png[/IMG]
You also need another bitmap which defines what part of the first bitmap will be masked:
http://img131.imageshack.us/img131/9850/maskic8.png[/IMG]
The section in white starts transparent, the red circle defines what will be visible from the first bitmap.
The result will be:
http://img127.imageshack.us/img127/9831/exemple2mv4.png[/IMG]
Applied on a map, for exemple:
http://img83.imageshack.us/img83/1572/resultrg4.png[/IMG]
Another good exemple, the X-Ray from Super Metroid:
http://www.nintendomaniacs.com/images/u ... _scope.png[/IMG]http://metroid.homestead.com/files/pictures/super/visors.jpg[/IMG]
I thought i could use the get_pixel method but it's to slow for larger pictures. It gives me a "Script is hanging" error every times.
So, I need help! Does someone have any idea on how to do it?
Thanks!
-Dargor
I need help, I'd like to know, in your opinion, what would be the best way to make a masking script?
For those who don't know what masking are, here's an exemple.
First of all, you need a bitmap to be masked:
http://img127.imageshack.us/img127/2880/exemple1bh5.png[/IMG]
You also need another bitmap which defines what part of the first bitmap will be masked:
http://img131.imageshack.us/img131/9850/maskic8.png[/IMG]
The section in white starts transparent, the red circle defines what will be visible from the first bitmap.
The result will be:
http://img127.imageshack.us/img127/9831/exemple2mv4.png[/IMG]
Applied on a map, for exemple:
http://img83.imageshack.us/img83/1572/resultrg4.png[/IMG]
Another good exemple, the X-Ray from Super Metroid:
http://www.nintendomaniacs.com/images/u ... _scope.png[/IMG]http://metroid.homestead.com/files/pictures/super/visors.jpg[/IMG]
I thought i could use the get_pixel method but it's to slow for larger pictures. It gives me a "Script is hanging" error every times.
So, I need help! Does someone have any idea on how to do it?
Thanks!
-Dargor