this is the settings of the tool  and this is the results when i put the code in my program (the program simply visualize the bitmap on the display and the settings is correct) 