You are here: Re: image crop polygon « PHP Programming Language « IT news, forums, messages
Re: image crop polygon

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация