gillies@p.cs.uiuc.edu (01/05/90)
I have been trying to transfer a small color picture (from MacDraw II), but every time I paste it into the clipboard, the color information is lost. My real goal is to store a color PICT in the resource file of an application. I've also tried "Save as PICT" in MacDraw II, but it is stored in the file's data fork, not as a PICT resource. Is this a MacDraw II bug (it won't let color escape from the application as a PICT)? Or is there some problem with color on the clipboard? Don Gillies, Dept. of Computer Science, University of Illinois 1304 W. Springfield, Urbana, Ill 61801 ARPA: gillies@cs.uiuc.edu UUCP: {uunet,harvard}!uiucdcs!gillies
math1h3@elroy.uh.edu (01/05/90)
In article <126900138@p.cs.uiuc.edu>, gillies@p.cs.uiuc.edu writes: > I have been trying to transfer a small color picture (from MacDraw > II), but every time I paste it into the clipboard, the color > information is lost. > > My real goal is to store a color PICT in the resource file of an > application. I've also tried "Save as PICT" in MacDraw II, but it is > stored in the file's data fork, not as a PICT resource. > > Is this a MacDraw II bug (it won't let color escape from the > application as a PICT)? Or is there some problem with color on the > clipboard? I've created type 2 PICTS (color Quickdraw) programming in MacFortran 020 and Absoft's MPW Fortran, and copied them to the clipboard, and they paste into Word with some color left. The palette might not be the same, though. The colors stored in type 2 PICTS are RGB numbers: three 2-byte integers for Red, Green, and Blue components. When the Mac tries to draw a color PICT in a window that does not have the right RGB's in its palette, the colors are approximated; I think the algorithm picks a best Euclidean norm approximation to the RGB values. I have also saved color PICTS in PICT files. I can open these (minus color) in MacDraw (1.9.5), but not if they have text in them. I think I am putting the text in the file properly, with PicComments, but it still doesn't work. Opening my color PICTS in Cricket Draw has always been slow or impossible It could be my version of Cricket Draw doesn't use Color Quickdraw, but the old-style color that existed in software but not hardware on the original Mac. That could have something to do with your problem, too. I hope this helps. David H. Wagner My opionions are mine and not the University of Houston's.
hpoppe@bierstadt.ucar.edu (Herb Poppe) (01/05/90)
In article <126900138@p.cs.uiuc.edu> gillies@p.cs.uiuc.edu writes: > >I have been trying to transfer a small color picture (from MacDraw >II), but every time I paste it into the clipboard, the color >information is lost. > >My real goal is to store a color PICT in the resource file of an >application. I've also tried "Save as PICT" in MacDraw II, but it is >stored in the file's data fork, not as a PICT resource. > >Is this a MacDraw II bug (it won't let color escape from the >application as a PICT)? Or is there some problem with color on the >clipboard? > If I recall correctly, the latest version or MacDraw II allows you to copy to the Clipboard in color or B/W. (There is some kind of option/preference where you specify your choice.) Previous versions only copied B/W. There is another potential problem you may encounter in trying to paste the picture as a PICT resource into a file. I had this problem with my version of MacDraw II (which at 1.0v4 is not the latest) and ResEdit 1.2b3. I discovered that MacDraw II copies two versions of the picture to the Clipboard. One, the first, is its own format (type MDPL), the second is in PICT format. (To see this effect, paste a MacDraw II picture from the Clipboard to the Scrapbook -- the Scrapbook will list the types). When I went to paste the MacDraw II picture with ResEdit into the resource fork of an application I was developing, ResEdit only pasted the first version, which was the MacDraw II format and not PICT. I had to give up using MacDraw II for this purpose and revert to MacDraw 1.9.5, which only copies the PICT format to the Clipboard. (This was "ok" because I wasn't working with a color picture.) Herb Poppe NCAR INTERNET: hpoppe@ncar.ucar.edu (303) 497-1296 P.O. Box 3000 CSNET: hpoppe@ncar.CSNET Boulder, CO 80307 UUCP: hpoppe@ncar.UUCP
peirce@claris.com (Michael Peirce) (01/05/90)
In article <5892@ncar.ucar.edu> hpoppe@bierstadt.UCAR.EDU (Herb Poppe) writes: >If I recall correctly, the latest version or MacDraw II allows you to >copy to the Clipboard in color or B/W. (There is some kind of >option/preference where you specify your choice.) Previous versions >only copied B/W. > >There is another potential problem you may encounter in trying to paste >the picture as a PICT resource into a file. I had this problem with >my version of MacDraw II (which at 1.0v4 is not the latest) and ResEdit 1.2b3. >I discovered that MacDraw II copies two versions of the picture to the >Clipboard. One, the first, is its own format (type MDPL), >the second is in PICT format. (To see this effect, paste a MacDraw II >picture from the Clipboard to the Scrapbook -- the Scrapbook will list the >types). When I went to paste the MacDraw II picture with ResEdit >into the resource fork of an application I was developing, ResEdit >only pasted the first version, which was the MacDraw II format and not >PICT. I had to give up using MacDraw II for this purpose and revert >to MacDraw 1.9.5, which only copies the PICT format to the Clipboard. >(This was "ok" because I wasn't working with a color picture.) Yes, as of MacDraw II 1.1 there is a User Color Clipboard preference. Also, I use MacDraw II all the time to create PICTs for use in ResEdit. I usually take an extra step though, I paste the Cut PICTs into the ScrapBook and then open the scrap book with ResEdit. It's true that the PICT and the MDPL resources are both there, but I simply select the PICT I want in ResEdit and Copy. This only grabs the PICT which I can then Paste into a resource file. Claris Corp. | Michael R. Peirce -------------+-------------------------------------- | 5201 Patrick Henry Drive MS-C4 | Box 58168 | Santa Clara, CA 95051-8168 | (408) 987-7319 | AppleLink: peirce1 | Internet: peirce@claris.com | uucp: {ames,decwrl,apple,sun}!claris!peirce
lsr@Apple.COM (Larry Rosenstein) (01/05/90)
In article <5892@ncar.ucar.edu> hpoppe@bierstadt.ucar.edu (Herb Poppe) writes: > into the resource fork of an application I was developing, ResEdit > only pasted the first version, which was the MacDraw II format and not > PICT. I had to give up using MacDraw II for this purpose and revert I've done this with ResEdit 1.2 (final) and it pasted both the MDPL and the PICT resources. Larry Rosenstein, Apple Computer, Inc. Object Specialist Internet: lsr@Apple.com UUCP: {nsc, sun}!apple!lsr AppleLink: Rosenstein1