[Lazarus] Rotating a bitmap

Michael Van Canneyt michael at freepascal.org
Mon Oct 27 13:22:55 CET 2008



On Mon, 27 Oct 2008, Vincent Snijders wrote:

> 2008/10/27 Michael Van Canneyt <michael at freepascal.org>:
> > Hi,
> >
> > How can I rotate a bitmap 90° counterclockwise ?
> >
> > Alternatively, how can I read/write the pixels in the bitmap ?
> > I found ReadChannels/WriteChannels from RawImage, but they
> > use a strange kind of position object which I don't understand :(
> 
> Maybe the lazintf example
> (http://svn.freepascal.org/svn/lazarus/trunk/examples/lazintfimage/)
> can help. It rotates an image.

Exactly what I needed. TLazIntfImage is the missing link :-)

Thanks to everyone for the links ! 

Michael.


More information about the Lazarus mailing list