Posted by petersprc on 10/10/07 06:25
Not sure how you would do it.
One way could be to copy the smallest rectangle enclosing the
selection with imagecopyresized. Then clear the background part using
the scan-line polygon fill algorithm.
On Oct 9, 1:09 pm, Ofir Picazo <ofirpic...@gmail.com> wrote:
> Hello everyone,
> I'm trying to crop a polygon (defined as an array of coordinates) from
> a larger image. I read lots about gd and imagick but couldn't find an
> easy way to do it. Please let me know if you have any ideas.
>
> Thanks
Navigation:
[Reply to this message]
|