home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18438 < prev    next >
Encoding:
Internet Message Format  |  1992-11-15  |  1.3 KB

  1. Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!destroyer!news.itd.umich.edu!krk
  2. From: krk@oit.itd.umich.edu (Kenneth Knight)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Copying a BitMap
  5. Date: 15 Nov 1992 18:45:21 GMT
  6. Organization: Instructional Technology Laboratory, University of Michigan
  7. Lines: 16
  8. Distribution: world
  9. Message-ID: <1e65s1INNof1@terminator.rs.itd.umich.edu>
  10. References: <yjc-141192221634@b61539.student.cwru.edu>
  11. NNTP-Posting-Host: helen.oit.itd.umich.edu
  12.  
  13. In article <yjc-141192221634@b61539.student.cwru.edu> yjc@po.cwru.edu (Jerome Chan) writes:
  14. >How do I copy a BitMap to the DeskScrap? Inside Mac Vol I only shows how to
  15. >do them with 'TEXT' and 'PICT' files. How do I copy a BitMap to the
  16. >DeskScrap?
  17. >
  18. >---
  19. >The Evil Tofu
  20.  
  21. The easisest way would be to simply create a QuickDraw PICT of the bitmap.
  22. Simply open up a pcture of the proper size, copybits the bitmap to itself,
  23. and close the picture. Then Copy the PICT to the clipboard. You could also
  24. just copy the bit map data straight out, but you will have to figure out
  25. just how big that is by yourself. That is possible, but you'll have to be sure
  26. to get all the various fields. With a BitMap this is not too bad since you 
  27. only need to be sure to copy the raw memory pointed to by BaseAddr. 
  28.  
  29.