A military officer portrait painting captures the public and private countenance of service, recording uniforms, campaigns and individual rank across centuries.