libgdiplus new formula