home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / programm / 7363 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.8 KB

  1. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!jvnc.net!newsserver.jvnc.net!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340
  2. From: dic5340@hertz.njit.edu (David Charlap)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Re: 90 degree rotation of bitmaps ?
  5. Message-ID: <1993Jan6.220932.233@njitgw.njit.edu>
  6. Date: 6 Jan 93 22:09:32 GMT
  7. References: <1993Jan6.135311.24368@neptune.inf.ethz.ch>
  8. Sender: news@njit.edu
  9. Organization: New Jersey Institute of Technology, Newark, N.J.
  10. Lines: 27
  11. Nntp-Posting-Host: hertz.njit.edu
  12.  
  13. In article <1993Jan6.135311.24368@neptune.inf.ethz.ch> mhof@iiic.ethz.ch (Markus Alexander Hof) writes:
  14. >Hello together,
  15. >
  16. >Just got a little problem, for which  I have a solution, but which is awfully
  17. >complicated. I got 20 little Bitmaps, which I ought to have also turned 90 and
  18. >180 and 270 degree. Only solution I found is to enter all turned versions as
  19. >well into the iconedit. 
  20. >
  21. >PS: Can't use any transformations or segmentchains, because first it's really 
  22. >dynamic and second has to be drawn very quick (I use now GpiBitBlt).
  23.  
  24. Try this.  Create a presentation space that isn't associated with a
  25. window (I think WinCreatePS is the function...).  All you need is you
  26. HAB to do this.
  27.  
  28. WinDrawBitmap each of your bitmaps into this PS.  Use pixel-by-pixel
  29. functions to create rotated bitmaps from them.  Then use
  30. GpiCreateBitmap to make bitmaps from the rotated images.  use them
  31. just as you'd use the ones in your resource file (I think).  Or leave
  32. all the bitmaps (rotated and normal) in various (non-overlapping!)
  33. regions of your extra PS and use GpibitBlt to copy them to the window
  34. when you need them.
  35. -- 
  36.   |)  David Charlap          | .signature confiscated by FBI due to
  37.  /|_  dic5340@hertz.njit.edu | an ongoing investigation into the
  38. ((|,)                        | source of these .signature virusses
  39.  ~|~
  40.