c# - Rotate image continuously on each level -



have 1 function image processing call is: automatic license plate recognition .
function process image true when horizontal images.

i want image auto rotate each level like rotate 1" > not success, 2" > not success, 3" > ok, success , break foreach.

i think.

bool processimageflag = false;    //processimage represent function. private void rotateimage() {     foreach(...)     {          if(processimageflag == true)          {                rotatefunction();          }     } }  private void processimage() {      return processimageflag; } 

i don't know write function rotateimage().

until function process image success.

thank you.

you can rotate image angle each increment. , can use rectangle redraw image.

you can use math.atan computation , there similar explanation here might want learn:

how calculate rotation angle rectangle points?

another implementation in c# rotate image math (c#)


Comments