Search found 33 matches

by AmigoJack
Wed Jun 23, 2010 4:50 pm
Forum: GFL SDK
Topic: Loading transparent pictures > background color?
Replies: 7
Views: 2491

Re: Loading transparent pictures > background color?

You have the transparency index in GFL_BITMAP Yes, you answered the same in a couple of threads. But not more. It seems obvious to you what to do with it, but not to me. :( What should I do with it? I suspect it's an index on the color palette - should I directly modify this color on the palette in...
by AmigoJack
Wed Jun 23, 2010 11:13 am
Forum: GFL SDK
Topic: Loading transparent pictures > background color?
Replies: 7
Views: 2491

Loading transparent pictures > background color?

I've searched numerous topics and have not found one useful example (code language does not matter) on how to avoid a black background when loading a picture which supports transparence. It happens with GIFs, PNGs and ICOs at least. Can anybody give an example on how to set/define a background color...
by AmigoJack
Mon Jun 14, 2010 6:01 pm
Forum: GFL SDK
Topic: GFL SDK and Nikon RAW Format (NEF D200 Body Camera)
Replies: 7
Views: 4758

Re: GFL SDK and Nikon RAW Format (NEF D200 Body Camera)

I found a cure - and there are at least two things which cause this misbehaviour: Delphi turns ON floating point division errors, while Visual or Borland C++ turns them OFF. I suspect Pierre compiles the DLLs with some C++ compiler. This is the reason why we have a different behaviour between Delphi...
by AmigoJack
Fri May 21, 2010 7:31 pm
Forum: GFL SDK
Topic: gflGetTextExtent doesn't work correctly?
Replies: 6
Views: 1392

Re: gflGetTextExtent doesn't work correctly?

Cannot confirm this either. My test scenario: var iWidth, iHeight: GFL_INT32; iRes: GFL_ERROR; begin iRes:= gflGetTextExtent( 'Text', 'Arial', 30, 0, 0, 0, 0, 0, 0, iWidth, iHeight ); Memo1.Lines.Add( 'Normal: '+ IntToStr( iWidth )+ 'x'+ IntToStr( iHeight )+ ' Result='+ IntToStr( iRes ) ); iRes:= gf...
by AmigoJack
Thu May 20, 2010 5:14 pm
Forum: GFL SDK
Topic: gflGetTextExtent doesn't work correctly?
Replies: 6
Views: 1392

Re: gflGetTextExtent doesn't work correctly?

OK, I found the error. It is in the libgfl.pas. There is: function gflGetTextExtent([b]var[/b] text, font_name: PChar; var font_size, orientation: GFL_INT32; var italic, bold, strike_out, underline, antialias: GFL_BOOL; var text_width, text_height: GFL_INT32): GFL_ERROR; stdcall; Then you're using ...
by AmigoJack
Wed May 19, 2010 4:07 pm
Forum: GFL SDK
Topic: gflGetTextExtent doesn't work correctly?
Replies: 6
Views: 1392

Re: gflGetTextExtent doesn't work correctly?

Cannot confirm that. Did it in a loop 10 times with exactly your parameters, using version 3.11 and it always gave me no error and the width/height parameters held the values 66x28 . Have you called gflLibraryInit() with a result of GFL_NO_ERROR before using gflGetTextExtent ? Which result does gflG...
by AmigoJack
Fri May 14, 2010 5:43 pm
Forum: GFL SDK
Topic: Delphi example to read EXIF and write & read IPTC
Replies: 3
Views: 2734

Re: Delphi example to read EXIF and write & read IPTC

Most recent Delphi interface is 20100321 , that's two posts below - you should have read the whole thread. As for your errors: they cannot be more precise. They already tell you "hey, I cannot find this DLL at that location". So... Did you download the GFL SDK at all? You need the DLLs to make anyth...
by AmigoJack
Tue May 04, 2010 3:41 pm
Forum: GFL SDK
Topic: Error in libgfl.pas
Replies: 1
Views: 1026

Re: Error in libgfl.pas

I already changed that months ago, see http://newsgroup.xnview.com/viewtopic.php?f=4&t=19530 version from 2010-03-21 (which also contains a compiler switch to be compatible with all projects using pointers instead of VAR-definitions).
by AmigoJack
Tue Apr 20, 2010 4:10 pm
Forum: GFL SDK
Topic: Load of libgfle311.dll fails if libgfl311.dll was renamed
Replies: 0
Views: 846

Load of libgfle311.dll fails if libgfl311.dll was renamed

(I found this out while having two DLLs with the same name but different content) We have both DLLs: libgfl311.dll and libgfle311.dll . Loading both in a programs works as expected. If I rename libgfl311.dll to (for example) gfl.dll and only load this first DLL (and never libgfle311.dll ) everything...
by AmigoJack
Fri Apr 09, 2010 6:58 pm
Forum: GFL SDK
Topic: GFL SDK and Nikon RAW Format (NEF D200 Body Camera)
Replies: 7
Views: 4758

Re: GFL SDK and Nikon RAW Format (NEF D200 Body Camera)

Now I also have something similar: I open a jpeg-file with gflLoadBitmap() with no problems at all, can assign that to be displayed and also read dimensions, format... everything. When calling gflBitmapHasEXIF() it gives GFL_TRUE , so my next call is: gflBitmapGetEXIF() - and while calling this an e...
by AmigoJack
Sat Mar 20, 2010 11:53 pm
Forum: GFL SDK
Topic: Delphi interface (+ example) improved
Replies: 9
Views: 3722

Re: Delphi interface (+ example) improved

Hi Miguel, I know exactly what you mean and somehow expected such a reaction. :wink: So I included another compiler switch {$COMPATIBLE311} which supports nearly all of the old definitions. Not all, because a handful of them were wrong and should not be used anymore. Or I also fixed them and you sim...
by AmigoJack
Sat Mar 20, 2010 3:21 pm
Forum: GFL SDK
Topic: Delphi interface (+ example) improved
Replies: 9
Views: 3722

Re: Delphi interface (+ example) improved - 2nd version

This second update has completely checked and reviewed the whole interface and the demo example. Reordered all definitions to the same order in the .h-files. This way future additions and corrections can be found much easier. Changed many function parameters to use VAR instead of pointers, where it ...
by AmigoJack
Thu Mar 18, 2010 2:29 pm
Forum: GFL SDK
Topic: Hint: parameter definitions like "int" and "size_t"
Replies: 1
Views: 816

Hint: parameter definitions like "int" and "size_t"

I want to highlight 5 functions with inconsistent definitions: gflGetExtraInfos(): parameter "int idx" gflJPEGGetComment(): parameter "int maxsize" gflJPEGGetCommentW(): parameter "int maxsize" gflPNGGetComment(): parameter "int maxsize" gflPNGGetCommentW(): parameter "int maxsize" Those parameters ...
by AmigoJack
Thu Mar 18, 2010 2:15 pm
Forum: GFL SDK
Topic: "gflBitmapGetXMP" causes crash with certain images
Replies: 0
Views: 762

"gflBitmapGetXMP" causes crash with certain images

I have serious problems with gflBitmapGetXMP() in v3.11 with at least one JPEG-Image: upon calling the function an exception occurs: Access violation at address 00A94BD8 in module 'libgfl311.dll'. Read of address 012A5000 Unfortunately this cannot be isolated. When I later call gflFreeBitmap() I get...
by AmigoJack
Sat Mar 13, 2010 7:57 pm
Forum: GFL SDK
Topic: Delphi interface (+ example) improved
Replies: 9
Views: 3722

Re: Delphi interface (+ example) improved

Now that you point to it... the implementation should be function gflGetColorAt( const src: PGFL_BITMAP; x, y: GFL_INT32; var color: PGFL_COLOR ): GFL_ERROR; stdcall; function gflSetColorAt( var dst: PGFL_BITMAP; x, y: GFL_INT32; const color: PGFL_COLOR ): GFL_ERROR; stdcall; ...along with the ... E...