private void SaveAsImage_Shown(object sender, EventArgs e) { openFileDialog1.ShowDialog(); axPXV_Control1.CreateNewBlankDoc(500, 500, 1); var page = axPXV_Control1.Doc.CoreDoc.Pages[0]; var CC = axPXV_Control1.Doc.CoreDoc.CreateContentCreator(); //page.Document.AddImageFromFile(openFileDialog1.FileName); //axPXV_Control1.Doc.CoreDoc.WriteToFile(openFileDialog1.FileName); IXC_ImageFileFormatIDs img = IXC_ImageFileFormatIDs.FMT_PBM_ID; page.Document.WriteToFile(openFileDialog1.FileName); IXC_PageFormat nFormat = IXC_PageFormat.PageFormat_8Indexed; //ConvertFormatToIndx(page, nFormat); IXC_Channel sd = IXC_Channel.Channel_R; IIXC_Page d; axPXV_Control1.CreateNewBlankDoc(600, 600, 1); PXC_BoxType bx = new PXC_BoxType(); PXC_Matrix mtr = page.GetMatrix(bx); page.GetMatrix(bx); tagRECT tgRct = new tagRECT(); IIXC_Inst inst = (IIXC_Inst)axPXV_Control1.Inst.GetExtension("IXC"); }
private void SaveAsImage_Shown(object sender, EventArgs e) { openFileDialog1.ShowDialog(); axPXV_Control1.CreateNewBlankDoc(500, 500, 1); var page = axPXV_Control1.Doc.CoreDoc.Pages[0]; var CC = axPXV_Control1.Doc.CoreDoc.CreateContentCreator(); //page.Document.AddImageFromFile(openFileDialog1.FileName); //axPXV_Control1.Doc.CoreDoc.WriteToFile(openFileDialog1.FileName); IXC_ImageFileFormatIDs img = IXC_ImageFileFormatIDs.FMT_PBM_ID; page.Document.WriteToFile(openFileDialog1.FileName); IXC_PageFormat nFormat = IXC_PageFormat.PageFormat_8Indexed; //ConvertFormatToIndx(page, nFormat); IXC_Channel sd = IXC_Channel.Channel_R; IIXC_Page d; axPXV_Control1.CreateNewBlankDoc(600, 600, 1); PXC_BoxType bx = new PXC_BoxType(); PXC_Matrix mtr = page.GetMatrix(bx); page.GetMatrix(bx); tagRECT tgRct = new tagRECT(); IIXC_Inst inst = (IIXC_Inst)axPXV_Control1.Inst.GetExtension("IXC"); }