create a new image from the pixels of another

2006-01-17 Thread Jason (Polydiam)
I want to take image, that has been rotated through the 'angle' command, and
copy its contents to a brand new image.

 

Is this possible?

 

Thanks

 

Jason

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: create a new image from the pixels of another

2006-01-17 Thread Klaus Major

Hi Jason,

I want to take image, that has been rotated through the 'angle'  
command, and

copy its contents to a brand new image.

Is this possible?


Yes.

But you will have to make sure that the old and the new image have  
exactly the same dimensions!


Like this:

...
set the height of img the new one to the height of img the rotated  
one

set the width of img the new one to the width of img the rotated one

set the imagedata of img the new one to the imagedata of img the  
rotated one

## imagedata is the secret word :-)
...

But you may be disappointed, since the free space (if not rotated  
by 90, 180 or 270 degrees)

will be filled with black in the new image :-/


Thanks

Jason


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


create a new image from the pixels of another

2006-01-17 Thread Jason (Polydiam)
Hi, Thank you for that,
One last thing, how do you create the empty image the new one through code
when it is needed?
 
Thank you
 
 
Hi Jason,
 
 I want to take image, that has been rotated through the 'angle'  
 command, and
 copy its contents to a brand new image.
 
 Is this possible?
 
Yes.
 
But you will have to make sure that the old and the new image have  
exactly the same dimensions!
 
Like this:
 
...
set the height of img the new one to the height of img the rotated  
one
set the width of img the new one to the width of img the rotated one
 
set the imagedata of img the new one to the imagedata of img the  
rotated one
## imagedata is the secret word :-)
...
 
But you may be disappointed, since the free space (if not rotated  
by 90, 180 or 270 degrees)
will be filled with black in the new image :-/
 
 Thanks
 
 Jason

 

 

 

I want to take image, that has been rotated through the 'angle' command,
and copy its contents to a brand new image.

 

Is this possible?

 

Thanks

 

Jason

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


create a new image from the pixels of another

2006-01-17 Thread Jason (Polydiam)
Hi, Thank you for that,
One last thing, how do you create the empty image the new one through code
when it is needed?
 
Thank you
 
Sorry I want to create a new image on a substack from code in the mainstack.





Hi, Thank you for that,
One last thing, how do you create the empty image the new one through code
when it is needed?
 
Thank you
 
Hi Jason,
 
 I want to take image, that has been rotated through the 'angle'  
 command, and
 copy its contents to a brand new image.
 
 Is this possible?
 
Yes.
 
But you will have to make sure that the old and the new image have  
exactly the same dimensions!
 
Like this:
 
...
set the height of img the new one to the height of img the rotated  
one
set the width of img the new one to the width of img the rotated one
 
set the imagedata of img the new one to the imagedata of img the  
rotated one
## imagedata is the secret word :-)
...
 
But you may be disappointed, since the free space (if not rotated  
by 90, 180 or 270 degrees)
will be filled with black in the new image :-/
 
 Thanks
 
 Jason

 

 

 

I want to take image, that has been rotated through the 'angle' command,
and copy its contents to a brand new image.

 

Is this possible?

 

Thanks

 

Jason

 

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: create a new image from the pixels of another

2006-01-17 Thread Klaus Major

Hi Jason,


Hi, Thank you for that,
One last thing, how do you create the empty image the new one  
through code

when it is needed?

Thank you

Sorry I want to create a new image on a substack from code in the  
mainstack.


no problem, pretty easy :-)

...
create img the new one
...

If you want to create a control in another stack do this:

...
set the defaultstack to name of other or substack here
create img the new one
...

Hope that helps.


Hi, Thank you for that,
One last thing, how do you create the empty image the new one  
through code

when it is needed?

Thank you


Best

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: create a new image from the pixels of another

2006-01-17 Thread Chipp Walters

Jason,

If you're currently already using the rotate image command, then why not 
just:


copy img myAlreadyRotatedImage to stack newStack

??

Seems a lot easier than going through all the imagedata stuff.

Also, you might want to check out the 'angle' property as it is a way to 
rotate an image temporarily (not sure if that's needed in this case).


best,

Chipp

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution