dgis / xsddiagram

XSD Diagram is a free Xml Schema Definition (XSD) diagram viewer for Windows written in c# Framework.NET 2.0
http://regis.cosnier.free.fr/?page=XSDDiagram&nomenu
GNU General Public License v2.0
224 stars 52 forks source link

png/jpg generation failure #1

Closed typekpb closed 12 years ago

typekpb commented 12 years ago

when trying to generate jpg/png for web-app_3_0.xsd (http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd) with all the elements expanded, following error is shown (output file is corrupted): "Parameter is not valid".

Please note that there are also the dependant files required to be downloaded (web-common_3_0.xsd, javaee_6.xsd, jsp_2_2.xsd and javaee_web_services_client_1_3.xsd)

However this works for svg generation without any problem.

My assumption is that this could be caused by the fact that the diagram generated is huge.

dgis commented 12 years ago

On Windows 7 x64, with the version 0.11, after accepting to generate a 2028x84094 image, I get an error in a MessageBox with "A generic error occured in GDI+." If I put the zoom to 300%, it want to generate a 25881x732531 image, I get your error "Parameter is not valid" This is quite normal with a so huge image... But, I will try to improve that.

dgis commented 12 years ago

I improve the error message in case the image is too big to be generated. It is commited in version 0.12