gflAddText hast strange behavior

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: helmut, XnTriq, xnview

Gert

gflAddText hast strange behavior

Post by Gert »

Hello,

I've got this code in Delphi (just using the sample code):

...
e := gflLoadBitmap(PChar(filename), gfl_bmp, lp, finfo);

New(gfl_color);
gfl_color.Red:=1;
gfl_color.Green:=255;
gfl_color.Blue:=255;
gflAddText(gfl_bmp, PChar('Test'), PChar('Arial'), 100, 100, 14, 1, 0, 0, 0, 0, 0, gfl_color);
...

After that the image is mirrored an upside down. Using gflAddText a second time will not mirror the image again.

It's the first time for me using gfl, so maybe I did something terrible stupid or so...

Thanks, Gert
User avatar
xnview
Author of XnView
Posts: 45870
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: gflAddText hast strange behavior

Post by xnview »

Gert wrote:Hello,

I've got this code in Delphi (just using the sample code):

...
e := gflLoadBitmap(PChar(filename), gfl_bmp, lp, finfo);

New(gfl_color);
gfl_color.Red:=1;
gfl_color.Green:=255;
gfl_color.Blue:=255;
gflAddText(gfl_bmp, PChar('Test'), PChar('Arial'), 100, 100, 14, 1, 0, 0, 0, 0, 0, gfl_color);
...

After that the image is mirrored an upside down. Using gflAddText a second time will not mirror the image again.

It's the first time for me using gfl, so maybe I did something terrible stupid or so...

Thanks, Gert
Could you send me a Private mail with your email to send you the current beta?
Pierre.