only My site

Saturday, May 10, 2008

Graphics Mill for .NET

http://www.aurigma.com/Products/GraphicsMilldotNET/OnlineDemo.aspx
http://www.aurigma.com/Support/DocViewer/29/LoadingandSavingImagestoDatabase.htm.aspx
System.Data.SqlClient.SqlConnection connection = new System.Data.SqlClient.SqlConnection(connectionString);
System.Data.SqlClient.SqlCommand command = new System.Data.SqlClient.SqlCommand("SELECT Image_Data FROM [Image] WHERE Image_ID=" + imageID, connection);
connection.Open();
Byte[] imageData = (byte[])command.ExecuteScalar();
connection.Close();
System.IO.MemoryStream stream = new System.IO.MemoryStream(imageData);
Aurigma.GraphicsMill.Bitmap bitmap = new Aurigma.GraphicsMill.Bitmap(stream);

No comments: