Image not displayed properly

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
UKMC
Posts: 50
Joined: Sun Jan 08, 2017 12:01 pm

Image not displayed properly

Post by UKMC » Wed Feb 15, 2017 3:38 pm

Hi altogether,

I just want to load an (via answer file selected) image from a file via URL.
Everything works perfect.
When displaying the image with the following line

set the text of image "ausgewähltes_bild" to URL fld "Pfad"

Klaus
Posts: 11207
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Image not displayed properly

Post by Klaus » Wed Feb 15, 2017 4:17 pm

Hallo Ulrich,

well, that's not how it works! :D
Reference image:
...
set the filename of image "ausgewähltes_bild" to fld "Pfad"
...
Import image (binary) file:
...
set the text of image "ausgewähltes_bild" to URL("binfile:" & fld "Pfad")
...

Best

Klaus

UKMC
Posts: 50
Joined: Sun Jan 08, 2017 12:01 pm

Re: Image not displayed properly

Post by UKMC » Wed Feb 15, 2017 9:44 pm

Hello Klaus,

thanks for your hint, which works wonderful.

Klaus
Posts: 11207
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Image not displayed properly

Post by Klaus » Wed Feb 15, 2017 10:25 pm

Aber gerne doch, der Herr! :D

Post Reply

Return to “Rich Media”