FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   copy an image without permanent link
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: copy an image without permanent link  (Read 364 times)
st33d

WWW Email
copy an image without permanent link
« on: Mar 11th, 2005, 1:37am »

If I try to save the state of an image in a BImage it treats the memory as exactly the same from then on. Both handles reference the same image. If I try to restore the image to the state stored in the different handle nothing happens. They are now the same image (which beggars the question as to why I would want different names for the same reference). How do I stop this from happening?
 

I could murder a pint.
st33d

WWW Email
Re: copy an image without permanent link
« Reply #1 on: Mar 11th, 2005, 1:39am »

BImage has a method called copy(). Sorry, shoulda checked.
 

I could murder a pint.
seltar


Re: copy an image without permanent link
« Reply #2 on: Mar 13th, 2005, 6:48pm »

it also has a .save(filename) function, which allows you to save the current image as tif or tga to disk (not online)..  
 
good for programs where you have a userinterface, and only want to save the image you're working on..
 
-seltar
 
Pages: 1 

« Previous topic | Next topic »