private void tsInsertBitmap_Click(object sender, EventArgs e) { DrawForm frm = new DrawForm(m_bdfl.m_height); try { if (frm.ShowDialog() == DialogResult.OK) { m_bdfl.Insert(frm.m_fontBmp); } } finally { frm.Dispose(); } }
private void btInsertR_Click(object sender, EventArgs e) { Bitmap bmp = (Bitmap)pbBitmap.Image; if (bmp.Height != m_bdfr.m_height) { MessageBox.Show("Different heights!"); return; } FontBitmap fontBmp = new FontBitmap(Convert.ToUInt16(tbCode.Text, 16), bmp); if (m_bdfr.Insert(fontBmp)) { InsertFont(false, fontBmp); } }