LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LV 7.1.1 and LibTIFF-DLL, problems with file handler

Hi,

I have the following problem:
I want to read TIFF files using the libtiff library (www.libtiff.org). The library is used as a .DLL file.
First I have to open the TIFF file using a function called TIFFOPEN which returns a file handler, similar to fopen in the programming language C. All further functions need to get this file handler to work properly.
I have no clue how to handle this handler. Every attempt to pass this file handler to the functions failed.

The TIFFOPEN function is called using the default c calling convention. The return type is a string of c string type. A value with a length of 3 up to 5 bytes is returned (without any errors). Passing this string to the next function always causes a crash of the program...

Does anybody have a clue how to solve this problem? Where can I find further information on passing the file handler to the functions?
If you need further details on the problem, don't hesitate to contact me.

Regards


0 Kudos
Message 1 of 2
(2,652 Views)
Try Image Toolbox at:
     http://www.geocities.com/gzou999/imgtool.htm

Read Image File XP
Reads a picture file, such as bmp, gif, jpg, png, tiff, ico, wmf, emf, etc., and return with image data cluster to be displayed in the Picture control. To display the picture, use the Draw Flattened Pixmap VI. To work with the data as a 2D array, use the Unflatten Pixmap VI. Requir WinXP. Support 1, 4, 8, 16, 24, 32 and 48 bit images.
George Zou
0 Kudos
Message 2 of 2
(2,646 Views)