Page 1 of 1

Rotate bitmap

Posted: Wed Aug 18, 2010 2:07 am
by c-tec
Hello,
I have to rotate a bitmap when reading from a file and displaying with DCBITMAP and dc_bitmapdraw(). How can I do that ?
regards
Rudolf

Re: Rotate bitmap

Posted: Wed Aug 18, 2010 4:26 am
by Tom
Hi, Rudolf.

GraRotate() does not work with bitmaps or other images. As far as I know, there is no way to do this with Xbase++-functions. I use an AX control named "ImageKit 7" for this. It allows to display, manipulate, save and store all kinds of images:

http://www.imagekit.com/imagekit7.html

Re: Rotate bitmap

Posted: Wed Aug 18, 2010 6:13 am
by Auge_Ohr
c-tec wrote:I have to rotate a bitmap when reading from a file and displaying with DCBITMAP and dc_bitmapdraw(). How can I do that ?
Greg Doran have publish BmpManip-Update-v3-0.zip in Alaska Forum (2005 / 06 )

Re: Rotate bitmap

Posted: Wed Aug 18, 2010 8:06 am
by skiman
Hi,

You can also use FreeImage. This is a free tool. I used it to add watermarks to pictures and to resize.

I uploaded all you need for Xbase++ on my site: http://www.aboservice.com/download/imagefree.rar.

Someone made a wrapper for Xbase++. I don't know who did it. All credits are going to him/her.