home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4721 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.2 KB  |  30 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!usc!ucla-cs!ucla-mic!ucla-physics!mmccarri
  3. From: mmccarri@physics.ucla.edu (Mike McCarrick)
  4. Subject: How do I rotate text or a bitmap?
  5. Message-ID: <1993Jan7.211926.11912@physics.ucla.edu>
  6. Organization: UCLA Department of Physics
  7. Date: Thu, 7 Jan 93 21:19:26 GMT
  8. Lines: 20
  9.  
  10. I could rotate a bitmap pixel by pixel, but it seems like a
  11. lot of work given the various color formats.  Is there an
  12. easier (and faster) way?
  13.  
  14. Speaking of bitmaps, I am drawing a large, multi-color bitmap
  15. (a frequeny-time spectrogram) using the Rectangle() function
  16. to fill in each df dt block.  This also seems like too much 
  17. work since I have to create a pen and a brush with the desired
  18. color, select these objects, draw the rectangle, and then delete
  19. both objects.  This is repeated 100,000 times or so and is very
  20. slow.  I experimented with the SetPixel() function instead, but
  21. it is even slower!  Also, SetPixel() will not dither the color
  22. if I am running on a paletteless display.  Any suggestions?
  23.  
  24. Thanks,
  25. -Mike-
  26. -- 
  27. Dr. Michael McCarrick                   UCLA Department of Physics
  28. Plasma Physics Lab                              405 Hilgard Avenue
  29. mmccarri@physics.ucla.edu                    Los Angeles, CA 90024
  30.