Scanning mode is a key factor for the comprehensive performance, including imaging efficiency, of scanning transmission X-ray microscopy (STXM). Herein presented bidirectional method designed STXM with an S-shaped moving track. In this method, artificially ramp waves are generated by piezo-stage controller to control two-dimensional sample. The sample position information measured using laser i...