The invention discloses a method for displaying images in real time during the acquisition process of ultrasonic imaging logging. Firstly, a drawing buffer and an array are allocated in the memory, and a color bar is established; when the computer starts the thread for receiving data, if no data It is in a waiting state, otherwise, store the received data into the array, and then judge whether the depth difference meets the set conditions, if so, start the drawing thread, otherwise continue to store data in the array; after the drawing thread starts, create a temporary drawing buffer , and convert each sampling point of the amplitude and travel time difference data in the array into the color in the color bar, and then output it to the temporary drawing buffer; then output the images in the temporary drawing buffer to different ways according to the logging direction In the drawing buffer created at the beginning, it is finally output to the screen, and the drawing thread is suspended, waiting for the next thread to start. The method can draw a two-dimensional image in real time and quickly, and the drawn image can be viewed through a scroll bar at any time during the acquisition process.