Article View: comp.os.ms-windows.programmer.misc
Article #2579How do I rotate text or a bitmap?
From: Mike McCarrick
Date: Thu, 07 Jan 1993 21:19
Date: Thu, 07 Jan 1993 21:19
20 lines
1296 bytes
1296 bytes
I could rotate a bitmap pixel by pixel, but it seems like a lot of work given the various color formats. Is there an easier (and faster) way? Speaking of bitmaps, I am drawing a large, multi-color bitmap (a frequeny-time spectrogram) using the Rectangle() function to fill in each df dt block. This also seems like too much work since I have to create a pen and a brush with the desired color, select these objects, draw the rectangle, and then delete both objects. This is repeated 100,000 times or so and is very slow. I experimented with the SetPixel() function instead, but it is even slower! Also, SetPixel() will not dither the color if I am running on a paletteless display. Any suggestions? Thanks, -Mike- -- Dr. Michael McCarrick UCLA Department of Physics Plasma Physics Lab 405 Hilgard Avenue mmccarri@physics.ucla.edu Los Angeles, CA 90024
Technical Details
Message-ID:
<1993Jan7.211926.11912@physics.ucla.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!ucla-cs!ucla-mic!ucla-physics!mmccarriShow Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc Path: arc1-ca.pugleaf.net!sparky!uunet!usc!ucla-cs!ucla-mic!ucla-physics!mmccarri From: mmccarri@physics.ucla.edu (Mike McCarrick) Subject: How do I rotate text or a bitmap? Message-ID: <1993Jan7.211926.11912@physics.ucla.edu> Organization: UCLA Department of Physics Date: Thu, 7 Jan 93 21:19:26 GMT Lines: 20