Title: display images from digital archive Post by: Candida F. on April 22, 2010, 11:46:55 am hello everyone,
the idea is to have scanned images of documents displayed on the user's monitor. i've checked bdl user guide version 2.11 and found instructions on page 633 on how to display images. so i created a form with a static image area and a dynamic image area to test both possibilities and on the .profile, i've defined a path were images are stored. however when i try to run the program using instruction 'display image' nothing happens. i've tried to use .bmp, .jpg, .pdf, .png type of images and nothing worked. can someone assist on this? thanks, Candida Title: Re: display images from digital archive Post by: Sebastien F. on April 22, 2010, 11:56:52 am Candida,
What are the exact versions of GDC / FGL you are using? You should read this: https://4js.com/techdocs/genero/fgl/devel/DocRoot/User/Mig0004.html#searching-image-files Is the demo FGLDIR/demo/Widgets/ImageList working with a remote GDC? Can I suggest that you try latest FGL 2.21 + GDC 2.22 from our download site? Seb Title: Re: display images from digital archive Post by: . on April 22, 2010, 12:03:47 pm I would also suggest to check SIZEPOLICY attribute for your images.
If you let it as default ("INITIAL"), the image widget can be very small if there is no initial image, and won't grow if you change the picture afterwards. Using SIZEPOLICY=FIXED with HEIGHT/WIDTH or DYNAMIC is maybe a better solution. Title: Re: display images from digital archive Post by: Stefan S. on April 22, 2010, 12:12:20 pm in the perfile:
.... grid { [bild ] [ ] [ ] [ ] [ ] } end --grid ... image bild = formonly.lo_bild, sizepolicy = fixed, HEIGHT=180 PIXELS, WIDTH=240 PIXELS, autoscale; 4gl-code ... let lo_x = "abc.jpg" let lo_bild = "Q:/Produktbilder/", lo_x display by name lo_bild ... this works fine with out Application (2.11) hth Stefan Title: Re: display images from digital archive Post by: Sebastien F. on April 22, 2010, 03:03:44 pm May I suggest that you turn on GUI debug with:
$ FGLGUIDEBUG=1 $ export FGLGUIDEBUG => open the GDC debug console, run your program and send both fglrun stderr and GDC debug output to support@4js.com. Seb Title: Re: display images from digital archive Post by: Candida F. on April 22, 2010, 06:09:09 pm i was able to open the document as an image!
thanks everyone for the useful tips :) Title: Re: display images from digital archive Post by: Sebastien F. on April 22, 2010, 06:15:26 pm May I ask what was the problem?
Seb Title: Re: display images from digital archive Post by: Candida F. on April 22, 2010, 06:35:39 pm one problem was that we transfered the file as ASCII (default setting) instead of binary and the other had to do with the file extension. the instruction said that the extension was not needed but we could only open the image with the whole name (ex: test_image.bmp).
|