private void exampleToolStripMenuItem_Click(object sender, EventArgs e) { SUBSTRATE sub = new SUBSTRATE(); sub.bgcolor = 0x111111; sub.fgpencolor = 0x00AA00; sub.fgbrushcolor = 0x002200; sub.selectedcolor = 0x00FF00; sub.viewaxis = 1; sub.viewgrid = 1; sub.width = 100.0f; sub.height = 100.0f; sub.orgx = 45; sub.orgy = 45; sub.dierows = 19; sub.diecols = 19; sub.diewidth = 4.5f; sub.dieheight = 4.5f; sub.diepitchwidth = 5.0f; sub.diepitchheight = 5.0f; SubstrateLib.regen(_id, sub); // sub 전달하여 개별 die 정보 자동 생성 for (int row = 0; row < sub.dierows; row++) { for (int col = 0; col < sub.diecols; col++) { DIE die = new DIE(); SubstrateLib.die(_id, row, col, ref die); die.color = 0x005500; SubstrateLib.update(_id, row, col, die); //개별 die 정보 사용자 변경후 저장 } } SubstrateLib.render(_id, SubstrateLib.DimParameter.DimAll); // 화면 새로 그리기 }
public static extern void substrate(IntPtr id, ref SUBSTRATE substrate);
public static extern void Regen(IntPtr id, ref SUBSTRATE sub);
public static extern void regen(IntPtr id, SUBSTRATE sub);