An X-ray imaging apparatus includes an imaging device that captures a camera image of a target, a controller that stitches a plurality of X-ray images of a plurality of divided regions to generate one X-ray image of the target, and a display that displays a settings window providing a graphical user interface for receiving a setting of an X-ray irradiation condition for the divided regions, and displays the camera image in which positions of the divided regions are displayed.