|
-
Jun 21st, 2001, 03:04 PM
#1
Rotating 90 degrees
Is it possible to rotate image by 90 degrees without using GetPixel and SetPixel?
-
Jun 21st, 2001, 03:21 PM
#2
Good Ol' Platypus
Well there's DirectX
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Jun 21st, 2001, 03:36 PM
#3
-
Jun 21st, 2001, 03:43 PM
#4
Good Ol' Platypus

UPGRADE!
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Jun 22nd, 2001, 05:42 AM
#5
Fanatic Member
Use BitBlt for every pixel
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
-
Jun 22nd, 2001, 06:03 AM
#6
Frenzied Member
Use stretchblt, you can use negative numbers for width/height to rotate it 90º
-
Jun 22nd, 2001, 06:19 AM
#7
Fanatic Member
Wouldn't that just mirror and flip the picture?
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
-
Jun 22nd, 2001, 12:43 PM
#8
transcendental analytic
yep it would
Use c++, loop trough all pixels
counter clockwise
newX=-oldY;
newY=oldX;
clockwise
newX=oldY;
newY=-newX;
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jun 22nd, 2001, 04:13 PM
#9
PsychoMark, thanks for the BilBlt pixel-by-pixel idea. It really works faster than GetPixel/SetPixel, atleast my game loads much faster now
-
Jun 23rd, 2001, 02:20 AM
#10
Fanatic Member
Wow, never though it would actually work faster. Thanks for letting me know too...
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
-
Jun 23rd, 2001, 05:02 PM
#11
Maybe it has something to do with the number of API calls. Like, with GetPixel & SetPixel you need more VB code in the middle. You never know for sure.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|