private void AddressList_SelectedIndexChanged(object sender, EventArgs e) { uint addr = InputFormRef.SelectToAddr(this.AddressList); PatchUtil.PRIORITY_CODE priorityCode = PatchUtil.SearchPriorityCode(); //アイテム ItemFontPictureBox.Image = FontForm.DrawFont(Program.ROM.u16(addr), true, priorityCode); //セリフ SerifFontPictureBox.Image = FontForm.DrawFont(Program.ROM.u16(addr), false, priorityCode); }
private void ExportButton_Click(object sender, EventArgs e) { if (this.SearchChar.Text.Length <= 0) { return; } PatchUtil.PRIORITY_CODE priorityCode = PatchUtil.SearchPriorityCode(); if (this.FontType.SelectedIndex == 0) { //アイテム Bitmap bitmap = FontForm.DrawFont(this.SearchChar.Text, true, priorityCode); ImageFormRef.ExportImage(this, bitmap, InputFormRef.MakeSaveImageFilename(this, "Item_" + this.SearchChar.Text), 8); } else { //セリフ Bitmap bitmap = FontForm.DrawFont(this.SearchChar.Text, false, priorityCode); ImageFormRef.ExportImage(this, bitmap, InputFormRef.MakeSaveImageFilename(this, "Serif_" + this.SearchChar.Text), 8); } }