Skip to content
Loading
Rotate an image
0
  • You can use LEADTOOLS Imaging Pro SDK technology in your application.
    https://www.leadtools.com/sdk/imaging-pro
    The Image Processing technologies offer the ability to clean-up images and documents.
    Here is some sample code:
    1. using (RasterCodecs codecs = new RasterCodecs())  
    2. {  
    3.     string srcFileName = @"FILE PATH OF SOURCE IMAGE";  
    4.     string destFileName = @"FILE PATH OF ROTATED IMAGE";  
    5.     using (RasterImage image = codecs.Load(srcFileName))  
    6.     {  
    7.         RotateCommand command = new RotateCommand();  
    8.         command.Angle = 90 * 100;  
    9.         command.FillColor = new RasterColor(255, 255, 255);  
    10.         command.Flags = RotateCommandFlags.Bicubic;  
    11.         command.Run(image);  
    12.   
    13.         codecs.Save(image, destFileName, RasterImageFormat.Jpeg, image.BitsPerPixel);  
    14.     }  
    15. }
    0
  • Sanwar Ranwa
    Hello Furkan Ozbek
     
    Please check these Links
     
    https://www.youtube.com/watch?v=jlIn7Vn89Io
     
    https://www.youtube.com/watch?v=S9uSKO-BIgs 
     
    https://www.c-sharpcorner.com/UploadFile/75a48f/rotate-and-flip-an-image/
    0
  • Amit Gupta
    Image object has a function to rotate the picture, have a look https://www.c-sharpcorner.com/uploadfile/hrojasara/how-to-rotate-images-in-Asp-Net/
    0