Page 1 of 1
Transfering an image
Posted: Sun Nov 26, 2006 12:27 am
by dgm
Hi, I can't figure out how to (permanently) get an image I found on the user spaces of revonline (games). I can cut and paste the image to my program, but when I close the program it is gone. The image is a billiard ball in the program nineball with spin.rev. The image is a button(??) and I don't know how to transfer it to my (windows) desktop so I can import it to my program. I'm not so sharp with paths so you would need to be specific with directions. I assume I could just transfer it to a Photoshop file and then import it from there?
Dennis
Re: Transfering an image
Posted: Sun Nov 26, 2006 12:52 am
by Obleo
To save a image in a button. Is this the question? if so here how: Select Menu / Development / in menu select Image Library.
In the Image Library select with the option button; This Stack
Use the import button, select your image to import from your system.
Note the image will be visible in the stack to make invisible, open the inspector and uncheck visible while the image is selected.
Then add a button, you may want to make the button a transparent button from the inspector style menu.
Then while the button is selected, in the inspector, go to icons and boarders. Click on the button by the icon field. select your image that you imported.
Now the image is saved in the button, do not forget to save the stack changes before quitting.
To transfer, do you have a physical copy of the image? or a screen shot?
you just need an image, PNG would be best if it is has a alpha mask to it.
Gif also works but can be a little ruff around the edges.
I hope this was the info your looking for.
-ob
transfering an image
Posted: Sun Nov 26, 2006 2:33 am
by dgm
No, the image I'm talking about is a transparent button. It was probably made with Photoshop and is a PNF. I want to save this image onto my computer so I can use it in a new program I am working with. (But thanks for your answer, I didn't know that either).
Dennis
Posted: Sun Nov 26, 2006 4:41 am
by Obleo
You could get the image ID and write an export script for that image. Using Export
Posted: Tue Nov 28, 2006 11:05 am
by elanorb
To save an image as a file on your desktop you could try this
Select the button, open the property inspector, go to the Icons and Borders pane and note the icon number. This relates the image shown on the button to an actual image control stored somewhere else in the stack.
In the Nine Ball stack I think the images are just stored on the same card but are invisible so type
show image id <button image id>
This should cause the image control to appear. You can then use the put command to save the image as a file eg
put the text of image <image name> into url ("binfile:" & filepath)
I hope this helps
Elanor
Posted: Tue Nov 28, 2006 8:06 pm
by Klaus
This way you might end with an unusable file on your harddisk!!!!
You should either add a suffix ".png" to the filepath if you are sure this IS in fact a PNG image in Rev or better use:
...
export image "image name here" to file "full path here.png" as png
...
Regards
Klaus