only works for the gdi+ graphics context