コード例 #1
0
ファイル: FontView.cs プロジェクト: yulinwang79/wyl-tool
        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();
            }
        }
コード例 #2
0
ファイル: FontView.cs プロジェクト: yulinwang79/wyl-tool
        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);
            }
        }