Skip to content
Loading
0
  • Harshad Chirutkar
    0
     Below is C# example
    public void RotateFlip(RotateFlipType f)
    {
    if (FilterBitmap != null)
    {
    FilterBitmap.RotateFlip(f);
    }
    else
    {
    MessageBox.Show("Problem with Image processed","Do not mess Image",MessageBoxButtons.OK,MessageBoxIcon.Warning);
    }
    }
    In the above method FilterBitmap is the input Bitmap & RotateFlipType parameter must be passed to get desired result. 
    0
  • Harsh Shah
    0
    HTML
    1.   
    2.  
    3.   
    4.   
    5.  
    6.   
     JS
    1.   var angle = 0;
    2.   $('#button').on('click', function() {
    3.      angle += 90;
    4.      $("#image").rotate(angle);
    5.   });
    6.   $('#button1').on('click', function() {
    7.   angle -= 90;
    8.   $("#image").rotate(angle);
    9.   });  
     CSS
    1.   #wrapper
    2.   {
    3.       position:absolute;
    4.       top: 100px;
    5.       left: 100px;
    6.       max-height: 100px;
    7.       min-height: 100px;
    8.   }
    0