Both the Rising Sun Flag (as in the above poster) and the Hinomaru (the simple red disc on a white background) were adopted in 1870 by the new Meiji government.
The former became the official flag of the Japanese Army (and later Navy, as well), and the latter the national flag.

