<< Click to Display Table of Contents >> SaveToImage |
public void SaveToImage(String fileName,ImageFormat imageFormat)
Description:
Save drawing as a image.
Parameter:
fileName: The file name
imageFormat: The image format
Example:
private void menuItem29_Click(object sender, System.EventArgs e)
{
saveFileDialog1.InitialDirectory = Application.StartupPath;
saveFileDialog1.Filter = "Bitamp file(*.bmp)|*.bmp";
saveFileDialog1.FilterIndex = 1;
saveFileDialog1.DefaultExt = "bmp";
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
myCAD1.SaveToImage(saveFileDialog1.FileName,ImageFormat.Bmp);
}
}