The Pink-faced Jewel Beetle (Buprestis lyrata) is one of the metallic wood-boring beetles. It is usually found doing its thing on Douglasfir or pine snags. It generally attacks severely stressed or recently killed trees rather than the living, vigorous trees. As such, it helps with forest succession.
However, in the case of the beetle in the picture, any attempt at boring is futile. It has landed on a window (as the reflections make evident).
Alistair,
What an amazing composition of a colourful critter that turned into.