### Rotating Image in Brew 2.0

Wed, 04/30/2008 - 00:10

### Forums:

Can anyone tell me that how we can rotate image in brew 2.0 without using ITransform API

because ITransform API is not supported in 2.0 it is from 2.1.

Tue, 06/24/2008 - 01:26

vishal bhandari wrote:Hi

You may implement your on ITransform it is really essay

Use

[HTML]

| x’ | | cos θ - sin θ | | x |

| | = | | | |

| y’ | | sin θ cos θ | | y |

[/HTML]

this matrix formula where θ is rotation angle

x,y is orignal X and Y Cordenate of Image Pixel

and x’ , y’ is new X and Y Cordenate of Image Pixel

apply this formula for all Pixel and Drew it on its new x’,y’

Position. Now you get rotate image. i have used | for matrix

representation.

:)

Can u help me with example of source code?

vishal bhandari wrote:Hi

You may implement your on ITransform it is really essay

Use

[HTML]

| x’ | | cos θ - sin θ | | x |

| | = | | | |

| y’ | | sin θ cos θ | | y |

[/HTML]

this matrix formula where θ is rotation angle

x,y is orignal X and Y Cordenate of Image Pixel

and x’ , y’ is new X and Y Cordenate of Image Pixel

apply this formula for all Pixel and Drew it on its new x’,y’

Position. Now you get rotate image. i have used | for matrix

representation.

:)

Can u help me with example of source code?

Tue, 06/17/2008 - 06:13

Hi

You may implement your on ITransform it is really essay

Use

[HTML]

| x’ | | cos θ - sin θ | | x |

| | = | | | |

| y’ | | sin θ cos θ | | y |

[/HTML]

this matrix formula where θ is rotation angle

x,y is orignal X and Y Cordenate of Image Pixel

and x’ , y’ is new X and Y Cordenate of Image Pixel

apply this formula for all Pixel and Drew it on its new x’,y’

Position. Now you get rotate image. i have used | for matrix

representation.

:)

Hi

You may implement your on ITransform it is really essay

Use

[HTML]

| x’ | | cos θ - sin θ | | x |

| | = | | | |

| y’ | | sin θ cos θ | | y |

[/HTML]

this matrix formula where θ is rotation angle

x,y is orignal X and Y Cordenate of Image Pixel

and x’ , y’ is new X and Y Cordenate of Image Pixel

apply this formula for all Pixel and Drew it on its new x’,y’

Position. Now you get rotate image. i have used | for matrix

representation.

:)