This topic describes how to get started with Graphics Mill for .NET when creating the Windows application. We will create a simple Windows Forms application which loads the image and displays it.
Follow these steps:
Private Sub ButtonLoad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonLoad.Click OpenFileDialog1.Filter = Aurigma.GraphicsMill.Codecs.FormatManager.FilterStringForLoad() If OpenFileDialog1.ShowDialog = DialogResult.OK Then BitmapViewer1.Bitmap.Load(OpenFileDialog1.FileName) End If End Sub
private void button1_Click(object sender, System.EventArgs e) { openFileDialog1.Filter = Aurigma.GraphicsMill.Codecs.FormatManager.FilterStringForLoad; if (openFileDialog1.ShowDialog() == DialogResult.OK) { bitmapViewer1.Bitmap.Load(openFileDialog1.FileName); } }
As a result, the form should be looking like this screenshot:
After you run the application and load some image, it will be looking like this screenshot: