I have a PictureBox p and I tried to call p.Image.RotateFlip(RotateFlipType.Rotate90FlipNone) with no efect.
How can I rotate an image?
And how can I allow user to zoom +/- an image?
Hi Adrian,
I send you in attachment the way to proceed.
Best,
Kevin(ITG)
Hi Adrian,
If you want to use Wisej for rotation, we have an extender https://docs.wisej.com/docs/controls/extenders/rotation for that:
– For Rotation : this.rotation1.GetRotation(this.pictureBox1).RotateZ += 20;
-For Scale (Zoom) : this.rotation1.GetRotation(this.pictureBox1).ScaleX += 20;this.rotation1.GetRotation(this.pictureBox1).ScaleY += 20; this.rotation1.GetRotation(this.pictureBox1).ScaleZ += 20;
If you want to apply effect directly on Bitmap, Check this link for more details https://docs.microsoft.com/en-us/dotnet/api/system.drawing.image.rotateflip?view=dotnet-plat-ext-6.0
Happy Coding,
Kevin(ITG)
Please login first to submit.