[Lazarus] Rotating a bitmap

Vincent Snijders vincent.snijders at gmail.com
Mon Oct 27 12:41:56 CET 2008


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.

Vincent




More information about the Lazarus mailing list