public void FillCell(int x, int y) { CellToCoord(ref x, ref y); wxRect rect = new wxRect(x, y, m_hmult, m_vmult); Color background_color; Globals.setBackgroundColor(out background_color); m_dc.SetBrush(new System.Drawing.SolidBrush(background_color)); m_dc.SetPen(new System.Drawing.Pen(background_color, 1)); m_dc.DrawRectangle(rect); }
public void FillCell(int x, int y) { CellToCoord(ref x, ref y); m_dc.SelectObject(m_pixmap); wxRect rect = new wxRect(x, y, m_hmult, m_vmult); Colour background_color = new Colour(); GlobalFunctions.setBackgroundColor(background_color); m_dc.SetBrush(new wx.Brush(background_color)); m_dc.SetPen(new wx.Pen(background_color, 1)); m_dc.DrawRectangle(rect); m_dc.SelectObject(wx.Bitmap.NullBitmap); }