image graphic picture??

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
roeg11
Posts: 4
Joined: Fri Jul 31, 2009 4:01 pm

image graphic picture??

Post by roeg11 » Fri Jul 16, 2010 12:36 pm

Forgive a posting that shows that I"ve not read and studied all the documentation for RunRev Studio.

But the subject line has my question: what's the difference between those three terms?

I'm trying to build a stack that imports a little BW drawing on each page; and I can import it using "import paint from file "ATB2.jpg" in the script of a button. Then I "set the loc of img "ATB2.jpg" to 358,250". If I click again on that button, the picture (Image--graphic?) won't appear at the loc I specify. (Nor would it resize on a second click to fit the "graphic" picture field that I've created for a frame.)

I'm working on workarounds (hide the button after the image is loaded the first time, then deleting the image and showing the button when going to the next card) and (if the image already exists then exit mouseup--but I'm such a beginner that I couldn't even get that to run). And I'm thinking that maybe the name I use (picture, image, graphic) is causing the problem.

I read somewhere else on the forum about locking the graphic...but I've not tried it to see if a second click to import the paint will place the jpg where I don't want it.

thanks in advance
gary roelofs

Curry
Posts: 111
Joined: Mon Oct 15, 2007 11:34 pm
Contact:

Re: image graphic picture??

Post by Curry » Sat Jul 17, 2010 5:24 am

Either in the User Guide or the Dictionary you should take a few minutes to read about the difference between image and graphic--they may be similar in English, but very different in RunRev.

It's possible to import images as you are doing, but it sounds like you might be better off if you create an image, size it as desired, lock the loc, group it, set group to behave like a background and place it on your cards, and set the filename of that image from your button script.
Best wishes,

Curry Kenworthy

LiveCode Development, Training & Consulting
http://livecodeconsulting.com/

WordLib: Conquer MS Word & OpenOffice
SpreadLib: "Excel-lent" spreadsheet import/export
http://livecodeaddons.com/

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: image graphic picture??

Post by Mark » Mon Jul 19, 2010 10:06 am

Hi roeg11,

If you haven't solved this problem yet, please post your script.

Best regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply