protected void drawCenteredLText(string s, Point p, bool cx) { var fs = Context.GetLTextSize(s); int w = (int)fs.Width; int h2 = (int)fs.Height / 2; if (cx) { adjustBbox(p.X - w / 2, p.Y - h2, p.X + w / 2, p.Y + h2); } else { adjustBbox(p.X, p.Y - h2, p.X + w, p.Y + h2); } Context.DrawCenteredLText(s, p.X, p.Y); }