private void RenderMap(Graphics g, Position pos, Caption caption) { int w = caption.Dx / 3; int h = w / 2; MapBitmap mapbitmap = new MapBitmap(w, h, new LibSolar.Mapping.Colors(), font_face); Bitmap bitmap = mapbitmap.RenderBaseImage(); bitmap = mapbitmap.RenderCurrentPosition(bitmap, null, pos); int dxx = GetInc(caption); int a = (caption.A + caption.Dx) - w - dxx; int b = caption.B; g.DrawImage(bitmap, a, b, w, h); }
private Bitmap GenerateBaseImageBitmap() { Size dim = GetCanvasDimensions(); this.mapbitmap = new MapBitmap(dim.Width, dim.Height, colors, font_face); return mapbitmap.RenderBaseImage(); }