DamienL Posted March 13, 2011 Share Posted March 13, 2011 Hi I try to read PDN file in my C# 4.0 program (coded with Visual Studio 2010 Express). I have added references to : - PaintDotNet.Base - PaintDotNet.Core - PaintDotNet.Data For the beginning I try something simple : string uri = @"..\forest.pdn";string nom = ""; FileStream fs = new FileStream(uri, FileMode.Open, FileAccess.Read); Document doc = document.FromStream(fs); for (int i = 0; i < doc.Layers.Count; i++) { Layer current = (Layer)doc.Layers; if (nom != "") nom += ", "; nom += current.Name; } lblLayers.Content = nom; But, when the program try to open a stream with "Document doc = document.FromStream(fs);" I have the following error : Unable to load DLL 'Native.x86\PaintDotNet.Native.x86.dll': The referenced assembly is not installed on your system. The Dll exists in my computer. I have tried to do what is indicated here, but without success. Someone can help me ? Damien PD: I hope my english is not too bad. Link to comment Share on other sites More sharing options...
Rick Brewster Posted March 13, 2011 Share Posted March 13, 2011 Paint.NET is not meant to be used in your application. Read the license. You may not do this. Also, this is not a programming help forum. Thread Closed The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Recommended Posts