Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

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.

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.
:)

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?