libgdiplus new formula

I'd like us to have a test before this gets merged.