gdiplus: Moved two inline helpers to the header.