Apparently you will have to import the function on your own at this time :(
I believe (not sure though, maybe someone can answer that) pixbuf
device, is the font handle (in this case). If so, then you can use it
as follows:
{
typedef enum {
GDK_PIXBUF_ROTATE_NONE = 0,
GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE = 90,
GDK_PIXBUF_ROTATE_UPSIDEDOWN = 180,
GDK_PIXBUF_ROTATE_CLOCKWISE = 270
} GdkPixbufRotation;
You can use your own number btw, to rotate the text in the direction
you wish to use.
GdkPixbuf* gdk_pixbuf_rotate_simple (const GdkPixbuf *src,
GdkPixbufRotation angle);
}
@new_font_handle := gdk_pixbuf_rotate_simple(@hande, degree_to_rotate);
Please note that I never done this at all under GTK or Lazarus :(
Ido
P.S.
http://www.google.com/codesearch?q=gdk_pixbuf_rotate_simple&hl=en&btnG=Search+Code
On 5/12/07, Fujimaki Haruyuki <[EMAIL PROTECTED]> wrote:
ik wrote:
> Hi,
>
> On GTK2.6 you can try and use the gdk_pixbuf_rotate_simple () function
>
> Ido
Thanks.
It seems similar to QPainter_rotate.
How can I call the function from FreePascal?
I googled, but could not find even an example for C.
Haruyuki
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
--
http://ik.homelinux.org/
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives