An X-ray generator of this invention has an X-ray monitor that monitors a
state of an X-ray emitted from a target. Hence the state of the X-ray can
be monitored in real time to maintain the X-ray in a constant state. The
X-ray monitor is positioned off the path on which an X-ray transmitted
from a first exit window travels. Hence, when the X-ray is emitted from
the first exit window to an object to be inspected, the X-ray monitor
does not obstruct the approaching of the object to the first exit window.
This makes it possible to acquire X-ray images of high magnification.