[Lazarus] Rotating a bitmap
Graeme Geldenhuys
graemeg.lists at gmail.com
Mon Oct 27 12:18:39 CET 2008
2008/10/27 Michael Van Canneyt <michael at freepascal.org>:
> Hi,
>
> How can I rotate a bitmap 90° counterclockwise ?
Wouldn't a rotation matrix do the trick? I remember the old fpGUI
code (gfxbase.pas) unit used a 3x3 matrix to do translations and
scalations calculations. I would imagine the same could be applied for
rotation.
Wikipedia has some articles on rotation matrix, but the formulas look
scary. ;-) Google revealed a lot of links on rotation matrix.
> Alternatively, how can I read/write the pixels in the bitmap ?
The TFPCustomCanvas.Colors[] array?
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
More information about the Lazarus
mailing list