Re: image pasting

2003-08-22 Thread mazzapaolo
You wrote:
Where are you getting the images in the clipboard from? Are you copying
from another application, or from another stack? If it is from another
stack, there are other ways to move the images.
I'm copying them from Claris Works

When I get images from the clipboard i loose transparency. (Also 
copying and pasting in Revolution)
Is it a bug of Rev 2.1 ,  is it a limitation of the program or am I 
missing something?

Thanks,   Paolo



Mercoledì, 20 Ago 2003, alle 00:02 Europe/Rome, Andrew ha scritto:

Much thanks for being in contact with me about image problems!

   set the width of img 1 to the formattedWidth of img 1
   set the height of img 1 to the formattedHeight of img 1
Okay, I put this script into the Mouseup handler of a btn on my card, 
and edited the script to say img name of my image instead of 1
However, it doesn't do anything when I click the button.  What gives?  
:)

Secondly, I'm still having a lot of trouble getting my second image 
to
paste separate from the first image.  I shrink the first image and 
move
it over to one side of the card.  Then I click elsewhere on the card 
(so
the first image is not selected) and paste my second image.  Still, 
the
second image appears right on top of the first one, no matter where 
the
first one is located on the screen.
Where are you getting the images in the clipboard from? Are you 
copying
from another application, or from another stack? If it is from another
stack, there are other ways to move the images.
I'm copying them from Claris Works
Also, are you sure that the second image is actually going into the
first one, or is is just getting laid on top? If it is just on top, 
then
resizing it should work.
I'm sure that it is going into the first one.  It pastes on top of the 
first image no matter where the first image is on the screen.  After I 
paste it, when I click on it and move it, both images move together as 
if they were one image (assuming that the second one is smaller and I 
can still see the first image behind it).

Thanks again for your help.  I'm very appreciative
Andrew
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: image pasting

2003-08-22 Thread J. Landman Gay
On 8/22/03 4:59 AM, mazzapaolo wrote:

When I get images from the clipboard i loose transparency. (Also copying 
and pasting in Revolution)
Is it a bug of Rev 2.1 ,  is it a limitation of the program or am I 
missing something?
To maintain transparency, you'd save yourself a lot of trouble if you 
would save your images as transparent gif or png images in your paint 
program. Then import the images from disk, using Import as control in 
Rev's file menu. That will maintain transparency as well as avoid all 
the resizing problems you were having.

Importing images from disk is the standard way to get them into a stack. 
In fact, until I answered your questions about it, I had never even 
tried to paste an image directly into a stack from the clipboard. It 
seems to be far more work to paste the image than to import it from 
disk. Pasting requires a lot of extra scripting to get the image into 
the same state that is produced automatically with an import.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: image pasting

2003-08-22 Thread Mark Talluto
On Friday, August 22, 2003, at 09:22 AM, J. Landman Gay wrote:

On 8/22/03 4:59 AM, mazzapaolo wrote:

When I get images from the clipboard i loose transparency. (Also 
copying and pasting in Revolution)
Is it a bug of Rev 2.1 ,  is it a limitation of the program or am I 
missing something?
To maintain transparency, you'd save yourself a lot of trouble if you 
would save your images as transparent gif or png images in your paint 
program. Then import the images from disk, using Import as control 
in Rev's file menu. That will maintain transparency as well as avoid 
all the resizing problems you were having.

Importing images from disk is the standard way to get them into a 
stack. In fact, until I answered your questions about it, I had never 
even tried to paste an image directly into a stack from the clipboard. 
It seems to be far more work to paste the image than to import it from 
disk. Pasting requires a lot of extra scripting to get the image into 
the same state that is produced automatically with an import.

To play devils advocate, it would be nice to be able to paste directly 
from one app to a Rev app.  You might be making a paint program, layout 
program, multimedia app, or various other apps where this would be 
useful.  The pasting and getting extra white space needs to be 
Bugzillaed.

For creating your interface in Rev, you should just import the image as 
normal for the time being.  Not sure if cutting and pasting from 
another app and maintaining transparency is a job for Rev though.  I 
think that is saved to the file and not in the host app's memory.

Best regards,
Mark Talluto
http://www.canelasoftware.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: image pasting

2003-08-20 Thread Ray G. Miller
On Tuesday, August 19, 2003, at 04:02 PM, Andrew wrote:

 I'm copying them from Claris Works



I may be missing something here, but it sounds like you are making it 
much more complicated than it needs to be...

In Claris/AppleWorks SAVE the pix as .gif or .jpg and then IMPORT that 
pix from MC/Rev.

This has the added benefit that the pix can be opened again in Claris if 
editing is required



Ray G. Miller
__
Turtlelips Productions
4009 Everett Ave.
Oakland, CA 94602
MailTo:[EMAIL PROTECTED]
(V) 510.530.1971
(F) 510.482.3491
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: image pasting

2003-08-19 Thread Dar Scott
On Tuesday, August 19, 2003, at 04:02 PM, Andrew wrote:

I'm copying them from Claris Works
LOL!

I was following this because I had just made the same mistake.  Only 
I'm copying from AppleWorks.  Great minds think alike!

Dar Scott

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: image pasting

2003-08-19 Thread Mark Talluto
On Tuesday, August 19, 2003, at 03:02 PM, Andrew wrote:

Much thanks for being in contact with me about image problems!

   set the width of img 1 to the formattedWidth of img 1
   set the height of img 1 to the formattedHeight of img 1
Okay, I put this script into the Mouseup handler of a btn on my card, 
and edited the script to say img name of my image instead of 1
However, it doesn't do anything when I click the button.  What gives?  
:)

Sounds like the image is at its normal size.  Send me the file and I 
will look at it.

Best regards,
Mark Talluto
http://www.canelasoftware.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: image pasting

2003-08-19 Thread J. Landman Gay
On 8/19/03 5:02 PM, Andrew wrote:

Okay, I put this script into the Mouseup handler of a btn on my card, 
and edited the script to say img name of my image instead of 1
However, it doesn't do anything when I click the button.  What gives?  :)
I broke down and actually tried it. I should have done that first. Some 
of what I wrote before is wrong.

The first pasted image creates a card-sized image object by default and 
pastes your image into it. No matter what the natural size of the image, 
it now takes up the whole card and its formattedwidth and 
formattedheight are the same as the card size. There's a lot of white 
space around it.

I used the crop command to remove the excess white space:

  crop image 1 to 100,100,200,200 -- use whatever rect you need

If you don't want to figure out a rect, you can place a transparent 
field or button over the image and resize it like a frame around the 
part you want to keep. Then you can use:

  crop image 1 to the rect of btn frame

This gave me a small image object with very little white space, 
containing only the actual picture content.

After that, every new paste operation always replaced the contents of 
the first image object, even if I changed tools in between. I couldn't 
create a second new object just by pasting. So I created one by script:

  create image
  paste
This gives me a second image object and the paste goes into that one. An 
interesting side effect is that the default size of the new second image 
is the same as the now-cropped image 1.

To control the size of a new image object, set the imageTemplate to 
whatever properties you need; for example:

  set the rect of the imageTemplate to 100,100,200,200
  create image
  paste
That seems to do it.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution