Search found 76 matches

by MaierMan
Sun Aug 06, 2006 6:18 pm
Forum: GFL SDK
Topic: Unicode names
Replies: 5
Views: 2361

I have a small unicode layer built into gflW, the C++ Wrapper, that demonstrates the use of callbacks.
It's not really good, but it does it job.
Maybe you can get some ideas from it ;)

http://celebnamer.celebworld.ws/stuff/libgflW/
by MaierMan
Tue Aug 01, 2006 4:35 am
Forum: GFL SDK
Topic: Unicode names
Replies: 5
Views: 2361

Re: Unicode names

Yes, i use char* but you can convert UNICODE to multibyte You can't actually. Works if the filename only contains char representable by the system locale. But won't work with "real" WideChar filenames. E.g. I won't be able to open files with arab chars in the name under my de-DE Windows ;) Workarou...
by MaierMan
Wed May 31, 2006 5:44 pm
Forum: GFL SDK
Topic: gflLibrary
Replies: 3
Views: 2125

Think I finally got what you mean. There is a reason that the second parameter takes a pointer-to-pointer argument: It reassigns the "pointed pointer". It doesn't care if cpy already has a value assigned. It will simply override the address pointed by copy. This per design (and perfectly valid). You...
by MaierMan
Tue May 16, 2006 11:08 pm
Forum: GFL SDK
Topic: Request: gflIsImage function
Replies: 10
Views: 3225

The speed is quite bad here :p ... Sysinfo AMD 2600+ , 1GB DDR 400 , Maxtor 160GB IDE , WinXP Indeed. files: 1573 size: 773770.61 kb size: 755.64 MB size: 0.74 GB avg.s: 491.91 kb/file time: 7.96920195 secs avg.t: 0.00506624 secs/file This benchmark was performed on my system (see above), but on th...
by MaierMan
Tue May 16, 2006 1:02 am
Forum: GFL SDK
Topic: Request: gflIsImage function
Replies: 10
Views: 3225

The speed is quite good here :p Done a small benchmarking tool (single-threaded). Available from http://celebnamer.celebworld.ws/stuff/test_gflfi_speed/ (+ Source). my lil GflSDK getFileInformation() benchmark :p (C) 2006 Nils Maier - Code subject to BSD-style license -------------------------------...
by MaierMan
Mon May 15, 2006 11:16 pm
Forum: GFL SDK
Topic: Seems like a bug with GflAx.dll 2.54
Replies: 2
Views: 1745

Re: Seems like a bug with GflAx.dll 2.54

Hi everybody, To test the installation of the ASP component, I use the example.asp and image.asp provided with install. If the image is located in the same folder as example.asp and image.asp, it works fine. Like Path = Server.MapPath("/GflAx") File = Path & "\image.jpg" File = Path & "\result.bmp"...
by MaierMan
Mon May 15, 2006 11:12 pm
Forum: GFL SDK
Topic: gflReduceNoise
Replies: 3
Views: 1707

Re: gflReduceNoise

Marty wrote:can't find the function in the vb bas files :(
Then add the declaration yourself.
should look like this (not tested at all):

Code: Select all

Public Declare Function gflReduceNoise Lib "libgfle254.dll" (ByRef src As GFL_BITMAP, ByRef Dst As Long) As Integer
by MaierMan
Mon May 15, 2006 11:06 pm
Forum: GFL SDK
Topic: How to get image width and height in cm
Replies: 2
Views: 2148

Re: How to get image width and height in cm

can any body tell me how can i get image width and height in cm.... now i get it in pixels.... plz help.... hmm... not quite sure. Actually It should be px / dpi * ci. ci means a constant describing "cm : inch" which is 2.54 : 1 (as dpi = dots/px per inch). example: 2000px / 300dpi * 2.54 ~ 16,93cm...
by MaierMan
Thu Apr 27, 2006 9:24 pm
Forum: GFL SDK
Topic: Request: gflIsImage function
Replies: 10
Views: 3225

I recommend naming such a thing "gflLikelyImage" or similar, as this is not actually a check but just a hint.
And this fact should be clearly documented.
Otherwise novice GflSDK users will stumple over this for sure.
by MaierMan
Wed Apr 19, 2006 1:06 pm
Forum: GFL SDK
Topic: Plugin Jpeg2000 (Français)
Replies: 3
Views: 1938

I just understand a little french.
But I won't bother writing it... it simply would suck.

Anyway...
You might want to have a look at gflSetPluginsPathname. ;)

Edit.
D'oh. You already figured it out it seems.
Please excuse my ignorance to read all of your posts.
by MaierMan
Wed Apr 19, 2006 5:21 am
Forum: GFL SDK
Topic: gflLibrary
Replies: 3
Views: 2125

Re: gflLibrary

I'm writing application in C++Builder environment. Now I'm interesting of the one-color bitmaps. I created class with two gflBitmap objects - for example gflb1 and gflb2. When I tried to resize the first of them to the second with using of glfResize function, the address of the gflb2 is moved on 88...
by MaierMan
Wed Apr 19, 2006 5:14 am
Forum: GFL SDK
Topic: Problem with gflResize
Replies: 2
Views: 1519

When keeping all those Images "alive" you might soon run out of memory ;) An 1000x1000 24bit (RGB) image would require: 1000 x 1000 x 3 = 3000000 bytes ~ 2,9 MB (just the Data alone). Even in "managed code" applications like C#, VB or java will produce memory leakage is fairly easily possible, espec...
by MaierMan
Wed Apr 19, 2006 5:04 am
Forum: GFL SDK
Topic: First step in GFL SDK and AV error
Replies: 7
Views: 2774

Never programmed Delphi (at least no serious programming). I see this declarations in libgfl.pas type PGFL_FILE_INFORMATION = ^TGFL_FILE_INFORMATION; TGFL_FILE_INFORMATION = record ... function gflLoadThumbnail(const filename: PChar; width, height: GFL_INT32; var bitmap: PGFL_BITMAP; var params: TGF...
by MaierMan
Mon Apr 03, 2006 9:30 pm
Forum: GFL SDK
Topic: Bug in JPEG processing (reading no markers after SOS)?
Replies: 0
Views: 1018

Bug in JPEG processing (reading no markers after SOS)?

The "issue" is the following: After the SOS marker is encountered in a JFIF complicant file no further markers are read. In not quite sure if it is actually allowed to have markers after SOS section, but I did not find anything (JFIF spec, JPEG spec) thats says no. But I just had a quick glance. And...
by MaierMan
Sun Apr 02, 2006 3:17 pm
Forum: GFL SDK
Topic: Transparent bitmap (thumbnail)
Replies: 5
Views: 2263

TransparentBlt indeed kinda requires Win2000 or later. See Windows Platform SDK Documentation. Win9x implementation is there but "contains a memory leak that can exhaust system resources. To draw a transparent bitmap using BitBlt, see Knowledge Base article 79212 ." But the correct wrappers should b...