I tried out to rotate the image using TWain, but I found that there no option in TWain to rotate image.
With Best Regards.
There are two kinds of rotation in TWAIN: ICAP_ORIENTATION, which defines the which side of a sheet of paper is the leading edge being scanned. And ICAP_ROTATION (and ICAP_AUTOMATICROATE) which causes the scanner to rotate the finished image.
In both cases the scanner vendor has to choose to support these capabilities, so an application cannot assume they’ll always be present for use.