try to work around transform inconsistency between GDI and GDI+