[dev] Re: [cvs] commit: horde/lib/Image gd.php

Mike Cochrane mike at graftonhall.co.nz
Tue Jul 22 18:02:12 PDT 2003


> ----- Message from chuck at horde.org ---------
>
> chuck       2003/07/22 13:27:04 PDT
>
>   Modified files:
>     lib/Image            gd.php
>   Log:
>   add gd flip() and mirror() implementations

That's a long way of doing it. You don't need to copy each pixel, just each
vertical or horizonal scan line.
ie top row or pixels becomes bottom row of pixels when flipping and left column
becomes right column when mirroring.

- Mike :-)



More information about the dev mailing list