home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21048 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.2 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!sol.ctr.columbia.edu!emory!ogicse!reed!bowman
  2. From: bowman@reed.edu (BoBolicious)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Help with Bitmaps
  5. Message-ID: <1993Jan9.000421.29798@reed.edu>
  6. Date: 9 Jan 93 00:04:21 GMT
  7. Article-I.D.: reed.1993Jan9.000421.29798
  8. References: <104096@netnews.upenn.edu>
  9. Organization: Reed College, Portland, OR
  10. Lines: 18
  11.  
  12. In article <104096@netnews.upenn.edu> patchen@eniac.seas.upenn.edu (Michael Patchen) writes:
  13. >I am programming in Pascal and I have a BITMAP and I need to coerce the bitmap
  14. >into a PICTURE (via a pichandle, etc. ) which can be put in the clipboard and
  15. >then brought into a word processing document, for instance.
  16.  
  17. Set or Open a port of the appropriate size,
  18. OpenPicture
  19. ClipRect to the appropriate size
  20. CopyBits into the port
  21. ClosePicture
  22.  
  23. This may not be the fastest way to do it, but it's probably the safest.
  24.  
  25. cheers,
  26. bobo              In seeking the unattainable,
  27. bowman@reed.edu            simplicity only gets in the way.
  28. "On Monday, numbers floated everywhere, and the world was full of 
  29. approximations."  -- Spencer Heinz, _The Oregonian_, 1/5/93
  30.