Re: 90 Rotation in one buffer only



answer to ur question is:

transpose + flip

first just do a simple swap

pixel(x,y) <-> pixel(y,x) -> u need only one temp byte -> 270 deg
rotation

then flip along the vertical axis.

pixel(x,y) <->pixel(M-x,y) -> 90 deg rotation

u can use the same temp byte for this process as well.

in one step = pixel(x,y) <-> pixel(M-y,x)

pretty straightforward and simple

.



Relevant Pages

  • Got Intel code to rotate but still not solved
    ... Here's the code needed to set rotation through the Intel IEGD API: ... unsigned long flip; // bool horizontal flip ... The code excutes perfectly and kind of rotates the screen - more precisely it rotates the alphachannel or something. ... If I restart the computer after running the code above it's rotated perfectly so I'd say that the Intel part of it is now working - the question now is how to get windows to realize this runtime... ...
    (microsoft.public.win32.programmer.gdi)
  • Re: image rotation
    ... An image rotation by 90 degrees is the composition of a flip on the image ... operations can be effectively implemented in a one-buffer setup. ... It seems to me that's roughly as difficult as implementing a rotation. ...
    (comp.compression)
  • Re: Choosing basis rotation planes
    ... rotation matrices to flip the signs. ... in dimensions higher than 3, ... yours) always flip it for the ZX rotation matrix? ...
    (comp.graphics.algorithms)
  • Re: Choosing basis rotation planes
    ... All texts flip the y-axis rotation matrix. ... YZ PLANE ORIENTATION ... But if we chose not to flip the signs for the y-axis rotation (i.e. ...
    (comp.graphics.algorithms)
  • Re: Choosing basis rotation planes
    ... If I have a 'right-handed N-space', how do I know for which canonical ... rotation matrices to flip the signs. ...
    (comp.graphics.algorithms)

Loading