Copying an image, or part of it, to the clipboard
Many thanks for the insights on image opacity. Here's another image problem I've encountered. Using MC 2.5 on Mac OSX 10.4. I want to be able to copy part or all of an image to the clipboard. An image is visible in stack LBROW. A handler catches mouse action on that image, and if the user drags out a rectangle a translucent graphic pickRect is created to designate that sub-area of the image. The script below is supposed to (1) load the entire image to the clipboard if the user has not created a pickRect graphic; and (2) load that sub-area of the image if the user has created a pickRect graphic. Case (1) works as expected. Case (2) does not; some blank image seems to be loaded to the clipboard instead. But why? When debugging this script, it is evident that the import snapshot statement is indeed creating a new image of the correct subarea. Why doesn't set the clipboardData[image] work on it? Another puzzle: when debugging, MC 2.5 gives me an execution error when it gets to the end of the handler. on copyImage if there is not a graphic pickRect of stack LBROW then set the clipboardData[image] to image 1 of group pdfGroup of stack LBROW else set the defaultStack to LBROW put shiftedRect(the rect of graphic pickRect,the topLeft of stack LBROW) into r delete graphic pickRect import snapshot from rect r set the clipboardData[image] to last image delete last image end if choose browse tool end copyImage function shiftedRect r,s -- used to convert to screen coordinates the coordinates of rect r in a stack whose topLeft is at s -- eg for use in import snapshot repeat with i = 1 to 4 add item (1 + (i+1) mod 2) of s to item i of r end repeat return r end shiftedRect Any insights about this would be greatly appreciated. David Epstein ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
IDE versions
What the versions in the file archive in Yahoo referring to? Engine or Revolution distro? I fetched MC IDE from folder labelled Older versions of the IDE for 2.6.x and tried using it with engine 2.6.1 but got several errors when simply opening the IDE, which makes be think that this IDE is for engine 2.5.x. ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
Re: IDE versions
On Sat, 10 Mar 2007 02:08:44 +0100, Robert Brenstein wrote: What the versions in the file archive in Yahoo referring to? Engine or Revolution distro? I fetched MC IDE from folder labelled Older versions of the IDE for 2.6.x and tried using it with engine 2.6.1 but got several errors when simply opening the IDE, which makes be think that this IDE is for engine 2.5.x. Well, they're *supposed* to be related to the IDE version... if it's erroring out for you, then you got a bad IDE. :-) Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard
Re: IDE versions
On Fri, 9 Mar 2007 22:34:04 -0600, Ken Ray wrote: On Sat, 10 Mar 2007 02:08:44 +0100, Robert Brenstein wrote: What the versions in the file archive in Yahoo referring to? Engine or Revolution distro? I fetched MC IDE from folder labelled Older versions of the IDE for 2.6.x and tried using it with engine 2.6.1 but got several errors when simply opening the IDE, which makes be think that this IDE is for engine 2.5.x. Well, they're *supposed* to be related to the IDE version... if it's erroring out for you, then you got a bad IDE. :-) Sorry - I meant the *engine* version... If the IDE is for 2.6.x then it's MC Engine 2.6.x... Sorry for the confusion, Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ___ metacard mailing list metacard@lists.runrev.com http://lists.runrev.com/mailman/listinfo/metacard