|
Posted by Rik on 01/18/07 12:12
Geoff Berrow wrote:
> Message-ID: <45af3806$0$332$e4fe514c@news.xs4all.nl> from Rob
> contained the following:
>
>> Thanks for your (serious) reply. This works,
>> but know I want to extend this by copy a polygon
>> from one image to another. Do you know if this is possible?
>
> Images are rectangular. To copy a polygon, you are only copying part
> of the image. Lets say you have a black triangle on a white
> background. The process would be something like:
>
> look at the first pixel of the source image.
> if the pixel is white, move on to the next pixel
> if the pixel is black, change the corresponding pixel in the
> destination image to black
> Move on to the next pixel
>
> Using a couple of loops you can selectively blend part of an image.
Is it not simpler to make the backgroundcolor of the image that has to be
pasted in transparant? Seems a lot less work....
--
Rik Wasmus
Navigation:
[Reply to this message]
|