0
votes

Is there any way/library for rotation and fix the image tilt without using system.drawing as I am using azure function so it is not supported.

I am using c#.net core2.1.

I tried Emgu.CV It has following 2 function which internally uses system.drawing

LineSegment2D(Point p1, Point p2)
RotationMatrix2D(PointF center, double angle, double scale) 
2

2 Answers

0
votes

You can try to use SixLabors.ImageSharp, and please refer to this tutorial for rotate operation.

0
votes

I am using EmguCV in a netCore 2.1 project and it works for me. netCore does support a subset of System.Drawing. These are all parts which are not using GDI/GDI+. As long as you do not use Bitmap class or any EmguCV methods that use Bitmap as parameter you are fine.