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