Re: 90 Rotation in one buffer only
- From: "siddharth" <siddharth.vaghela@xxxxxxxxx>
- Date: 24 Nov 2005 07:23:36 -0800
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
.
- Follow-Ups:
- Re: 90 Rotation in one buffer only
- From: Naresh
- Re: 90 Rotation in one buffer only
- References:
- 90 Rotation in one buffer only
- From: Naresh
- 90 Rotation in one buffer only
- Prev by Date: Re: 90 Rotation in one buffer only
- Next by Date: Re: 90 Rotation in one buffer only
- Previous by thread: Re: 90 Rotation in one buffer only
- Next by thread: Re: 90 Rotation in one buffer only
- Index(es):
Relevant Pages
|
Loading