Jump to content

Image rotation


dali_ing

Recommended Posts

Hi,

I'm working in a report in which have to display images with different rotation (Left, Right,..). I'm wondring if some one knows how to do that. I tried to chnage that in Jasper code but it didn't worked well for me (only in clip mode)

Thanks

Link to comment
Share on other sites

  • 2 years later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

using System.IO;using System.Drawing.Printing;using Yiigo.Imaging;using Yiigo.Imaging.Processing;// Rotate image to 90 degreesusing YiigoImage Image = new YiigoImage();{string ImageID = (@"C: yiigo_example.jpg");RotateAngle Rotation = RotateAngle.90;}Image. YiigoImageProcessRotate(@"C: yiigo_example.jpg", RotateAngle.90);Image.save(@"C: yiigo_example.jpg");// Rotate image to 180 degreesusing YiigoImage Image = new YiigoImage();{string ImageID = (@"C: yiigo_example.jpg");RotateAngle Rotation = RotateAngle.180; }Image. YiigoImageProcessRotate(@"C: yiigo_example.jpg", RotateAngle.180);Image.save(@"C: yiigo_example.jpg");// Rotate image to 270 degreesusing YiigoImage Image = new YiigoImage();{string ImageID = (@"C: yiigo_example.jpg");RotateAngle Rotation = RotateAngle.270;}Image. YiigoImageProcessRotate(@"C: yiigo_example.jpg", RotateAngle.270);Image.save(@"C: yiigo_example.jpg");[/code]

You can rotate images using the code above. Or you can also employ a fine Image SDK and rotate images with the help of it. Google it and check its

free trial packge first if possible. I hope you success. Good luck.

 

 

 

Best regards,

Arron

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...