Some sample C\code that displays information from a pdn
file. Reading a pdn file looks to be quite easy. Now we only
have to extract the exacxt data from the pdn file and
convert it to an xcf file.
I guess this will be a nice future (at least importing the
picture) for GIMP# 0.8
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I changed group to 0.8 because I think we should have this
in our next release. Importing the .pdn file format is going
to be more easy than I thought. Exporting to .pdn might be
more difficult since GIMP has certains features (for example
masks) that aren't supported yet by Paint.NET.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Unhandled Exception:
System.Runtime.Serialization.SerializationException: Field
"m_compareInfo" not found in class
System.Collections.CaseInsensitiveComparer
in <0x00597>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadTypeMetadata
(System.IO.BinaryReader,bool,bool)
in <0x00040>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObjectInstance
(System.IO.BinaryReader,bool,bool,long&,object&,System.Runtime.Serialization.SerializationInfo&)
in <0x00097>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObject
(System.Runtime.Serialization.Formatters.Binary.BinaryElement,System.IO.BinaryReader,long&,object&,System.Runtime.Serialization.SerializationInfo&)
in <0x00072>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadNextObject
(System.IO.BinaryReader)
in <0x000b4>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObjectGraph
(System.IO.BinaryReader,bool,object&,System.Runtime.Remoting.Messaging.Header[]&)
in <0x0011f>
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:NoCheckDeserialize
(System.IO.Stream,System.Runtime.Remoting.Messaging.HeaderHandler)
in <0x00010>
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:UnsafeDeserialize
(System.IO.Stream,System.Runtime.Remoting.Messaging.HeaderHandler)
in <0x0037c> PaintDotNet.Document:FromStream (System.IO.Stream)
in <0x00124> Gimp.Pdn.Pdn:Load (string)
in <0x00119> Gimp.FilePlugin:Run
(string,Gimp.ParamDefList,Gimp.ParamDefList&)
in <0x0006e> Gimp.Plugin:Run (string,int,intptr,int&,intptr&)
in <0x0004f> (wrapper native-to-managed) Gimp.Plugin:Run
(intptr,int,intptr,int&,intptr&)
in (unmanaged) 0xb73845d7
in <0x00004> (wrapper managed-to-native)
Gimp.Plugin:gimp_main (Gimp.Plugin/GimpPlugInInfo&,int,string[])
in <0x00176> Gimp.Plugin:.ctor (string[])
in <0x0000d> Gimp.FilePlugin:.ctor (string[])
in <0x0000d> Gimp.Pdn.Pdn:.ctor (string[])
in <0x00019> Gimp.Pdn.Pdn:Main (string[])
This could be caused by missing stuff in Mono. If needed, we
can file a bug report for them.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've created a symbolic link from plugins directory to the
local CVS repository for PDN DLLs and wrapper.
This is the stack trace I got:
Unhandled Exception: System.InvalidCastException: Cannot
cast from source type to destination type.
in <0x0014e> Gimp.FilePlugin:Run
(string,Gimp.ParamDefList,Gimp.ParamDefList&)
in <0x000b6> Gimp.Plugin:Run (string,int,intptr,int&,intptr&)
in <0x00080> (wrapper native-to-managed) Gimp.Plugin:Run
(intptr,int,intptr,int&,intptr&)
in (unmanaged) 0x2aaaac8d4cb6
in <0x00012> (wrapper managed-to-native)
Gimp.Plugin:gimp_main (Gimp.Plugin/GimpPlugInInfo&,int,string[])
in <0x001bb> Gimp.Plugin:.ctor (string[])
in <0x0001a> Gimp.FilePlugin:.ctor (string[])
in <0x0001a> Gimp.Pdn.Pdn:.ctor (string[])
in <0x00026> Gimp.Pdn.Pdn:Main (string[])
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=21209
Some sample C\code that displays information from a pdn
file. Reading a pdn file looks to be quite easy. Now we only
have to extract the exacxt data from the pdn file and
convert it to an xcf file.
I guess this will be a nice future (at least importing the
picture) for GIMP# 0.8
Some sample code
Logged In: YES
user_id=21209
I changed group to 0.8 because I think we should have this
in our next release. Importing the .pdn file format is going
to be more easy than I thought. Exporting to .pdn might be
more difficult since GIMP has certains features (for example
masks) that aren't supported yet by Paint.NET.
Logged In: YES
user_id=1413577
Support for PDN import almost completed: still to evaluate
what could be ported beyond layers.
Moving to PDN export support.
Logged In: YES
user_id=21209
On Linux I get:
Unhandled Exception:
System.Runtime.Serialization.SerializationException: Field
"m_compareInfo" not found in class
System.Collections.CaseInsensitiveComparer
in <0x00597>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadTypeMetadata
(System.IO.BinaryReader,bool,bool)
in <0x00040>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObjectInstance
(System.IO.BinaryReader,bool,bool,long&,object&,System.Runtime.Serialization.SerializationInfo&)
in <0x00097>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObject
(System.Runtime.Serialization.Formatters.Binary.BinaryElement,System.IO.BinaryReader,long&,object&,System.Runtime.Serialization.SerializationInfo&)
in <0x00072>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadNextObject
(System.IO.BinaryReader)
in <0x000b4>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObjectGraph
(System.IO.BinaryReader,bool,object&,System.Runtime.Remoting.Messaging.Header[]&)
in <0x0011f>
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:NoCheckDeserialize
(System.IO.Stream,System.Runtime.Remoting.Messaging.HeaderHandler)
in <0x00010>
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:UnsafeDeserialize
(System.IO.Stream,System.Runtime.Remoting.Messaging.HeaderHandler)
in <0x0037c> PaintDotNet.Document:FromStream (System.IO.Stream)
in <0x00124> Gimp.Pdn.Pdn:Load (string)
in <0x00119> Gimp.FilePlugin:Run
(string,Gimp.ParamDefList,Gimp.ParamDefList&)
in <0x0006e> Gimp.Plugin:Run (string,int,intptr,int&,intptr&)
in <0x0004f> (wrapper native-to-managed) Gimp.Plugin:Run
(intptr,int,intptr,int&,intptr&)
in (unmanaged) 0xb73845d7
in <0x00004> (wrapper managed-to-native)
Gimp.Plugin:gimp_main (Gimp.Plugin/GimpPlugInInfo&,int,string[])
in <0x00176> Gimp.Plugin:.ctor (string[])
in <0x0000d> Gimp.FilePlugin:.ctor (string[])
in <0x0000d> Gimp.Pdn.Pdn:.ctor (string[])
in <0x00019> Gimp.Pdn.Pdn:Main (string[])
This could be caused by missing stuff in Mono. If needed, we
can file a bug report for them.
Logged In: YES
user_id=1413577
I've created a symbolic link from plugins directory to the
local CVS repository for PDN DLLs and wrapper.
This is the stack trace I got:
Unhandled Exception: System.InvalidCastException: Cannot
cast from source type to destination type.
in <0x0014e> Gimp.FilePlugin:Run
(string,Gimp.ParamDefList,Gimp.ParamDefList&)
in <0x000b6> Gimp.Plugin:Run (string,int,intptr,int&,intptr&)
in <0x00080> (wrapper native-to-managed) Gimp.Plugin:Run
(intptr,int,intptr,int&,intptr&)
in (unmanaged) 0x2aaaac8d4cb6
in <0x00012> (wrapper managed-to-native)
Gimp.Plugin:gimp_main (Gimp.Plugin/GimpPlugInInfo&,int,string[])
in <0x001bb> Gimp.Plugin:.ctor (string[])
in <0x0001a> Gimp.FilePlugin:.ctor (string[])
in <0x0001a> Gimp.Pdn.Pdn:.ctor (string[])
in <0x00026> Gimp.Pdn.Pdn:Main (string[])
Logged In: YES
user_id=21209
We have to decide if we want this in 0.8 as a windows-only
plug-in or delay it until 0.9. Max, what do you think?