How do I edit a bg image?

Phil Davis davis.phil at comcast.net
Sun Jul 24 00:47:41 EDT 2005


Timothy Miller wrote:
> Howdy, y'all,
> 
> Because my Rev stacks are HC imports, all the bitmapped text and 
> graphics from each HC background became a single background image in 
> Rev. (Unless I misunderstood something, which is quite possible.) I know 
> how to identify the images, make them visible and invisible, change 
> their locations, and so on, but I'd like to edit some of them. How do I 
> do that?

Hi Timothy,

I haven't done any HC-->Rev conversions in years, but here are some ideas.



1) You could export the image using a button containing the following 
code, edit the image outside the RunRev environment, then import it back 
in. (Or set the filename of the bg image object to the file's name.)

Before running this, you'll need to know the ID of the image to export 
(unless it's the only image):

on mouseUp
   -- identify where to save the exported image
   ask file "Save exported image as:"
   if it = empty then exit mouseUp -- cancelled
   put it into tImageFilename

   -- identify which image to export
   if the number of images > 1
   then
     ask "Export which image? (Enter a 'short' image ID.)"
     if it = empty then exit mouseUp -- cancelled
     put it into tID
   else
     put the short id of image 1 into tID
   end if

   -- export the image
   export image id tID to file tImageFilename as PNG -- or JPEG, or...
end mouseUp



2) You could take a look at Richard Gaskin's 4wCamera plug-in. I use it 
often for making images. See if it gives you what you need.



3) Have you tried using RunRev's image editing tools? That might also 
give you what you need. At the bottom of the Tools palette there's a 
line with a small up-arrow at the right end. Click the arrow to reveal 
the paint tools.


HTH - it'll at least give you some starting points.

Phil Davis




More information about the use-livecode mailing list