private RectangleF PreTreatBBox(RectangleF bbox) { const float EpsilonLen = 0.001f; if (bbox.Height < EpsilonLen) { bbox.Height = 0.001f; } if (bbox.Width < EpsilonLen) { bbox.Width = 0.001f; } return bbox; }