[Lazarus] Rotating a bitmap
Luiz Americo Pereira Camara
luizmed at oi.com.br
Mon Oct 27 12:52:07 CET 2008
Michael Van Canneyt escreveu:
> 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 :(
>
> (an alternate answer is to implement rotated fonts in GTK1 ;))
>
Try
https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/gradcontrols/src/urotatebitmap.pas
Attached is a test example.
Luiz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RotateImage.zip
Type: application/zip
Size: 3723 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20081027/5897d6b9/attachment-0007.zip>
More information about the Lazarus
mailing list