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