Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Support for WMF (Read 4878 times)
koosala
Full Member
***
Offline


Java Happens

Posts: 136
Joined: May 13th, 2007
Support for WMF
May 17th, 2007 at 11:31am
Print Post  
Hi,

I understand your application supports embedding images formats - gif, bmp, jpeg into a box.

I want to know if there is any way Windows Meta File (wmf) images can also be accomodated.

Even if it is not possible to inherently display wmf, can you allow for maybe a control to be embedded inside the box and the control take the responsibility of rendering the wmf.

Or is there other way at all showing a wmf image in a box ?

Any help in this regard would really be useful.

Thanks,
Praveen
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Support for WMF
Reply #1 - May 17th, 2007 at 11:59am
Print Post  
Hi,

You can display WMFs in ImageMap mode.

Java can load only PNG and GIF images. As a workaround you could convert the WMFs to PNG on the server side when you use the JavaApplet mode:

- create a new .NET Bitmap object
- call Graphics.FromImage(bitmap)
- call graphics.DrawImage(wmfImage)
- call bitmap.Save("temp.png")


I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
koosala
Full Member
***
Offline


Java Happens

Posts: 136
Joined: May 13th, 2007
Re: Support for WMF
Reply #2 - May 18th, 2007 at 3:00am
Print Post  
Hi Stoyan,

1. I want to use the applet mode because it provides the rich user interaction that I am looking for. So, ImageMap mode is not an option for me.

2. Displaying images in wmf is also important to me because it provides a vector based graphics whereas png or gifs provide raster images. Vector graphics have the advantage of smooth rendering on large zooming in (which your tool provides), whereas raster graphic images tend to get blurred on zooming in.

Your application API allows for custom rendering logic to be applied to a box by handling the drawitem event.
I have come across another tool - an applet that renders wmf images.
http://piet.jonas.com/WMF2Viewer/WMF2Viewer.html
I was wondering if I can use some of his components and use it against the API you provide to render wmf images in your boxes.

I will be testing this tool out against your component. Since you are more familiar with your flowchart component, I will be much obliged if you also could have look at this other tool and let me know if you think this would be a feasible solution (also maybe provide an example Smiley).

Also, thanks for your reply to my post of handling lane on the client side. It solved one problem atleast.

Praveen
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Support for WMF
Reply #3 - May 18th, 2007 at 5:25am
Print Post  
Hi Praveen,

Since the NetDiagram client side applet cannot embed other applets inside nodes, the only way I can think of implementing WMF support is through custom drawing. If the WMF2Viewer applet exposes some kind of DrawWmf(Graphics, Rectangle2D) method, you could call it for custom-drawn nodes.

I saw that the WMF2Viewer author sells the source code for the applet, so if there isn't a public draw-wmf method available, you might have to purchase the source code too.

Stoyan
  
Back to top
 
IP Logged
 
juansimon
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Jul 29th, 2008
Image Display
Reply #4 - Aug 29th, 2008 at 4:06pm
Print Post  
Hi,
I am ready to buy your component. It works fantastic.  I have developed with your component a nice scorecard, but when I tried to test your component in a development server, it appears that works, but at the end, the image doesnt display.  It seems like as if there isnt a file image.  A red X appears.  I know that the Image map is there but doesnt display.
I have tested in my computer (XP Professional) with the Visual Studio 2005, and it works OK, but when I published my application and installed in the test server it didnt display.
The server has Windows 2000 server SP4, Framework 2.0 sp1, Internet Explorer 6
Please help me, I need to ensure this component works for buy it inmediately for my presentation.

The code is the following:
                                                  <ndiag:DiagramView
ID="DiagramView1" runat="server"
ClientSideMode="ImageMap" AutoScroll="True"
ImageFormat="image/jpeg"                Behavior="DoNothing" >
</ndiag:DiagramView>

Thanks,
Juan Simon
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Support for WMF
Reply #5 - Aug 30th, 2008 at 2:06pm
Print Post  
Hi,

Have you copied ImageGen.aspx and ImageGen.aspx.cs to the development server?

Stoyan
  
Back to top
 
IP Logged
 
bkernan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: May 28th, 2009
Re: Support for WMF
Reply #6 - Jun 2nd, 2009 at 7:26pm
Print Post  
Hello, I have a similar issue to the post above. We have not purchased yet, and are still testing. I just moved my diagram from my local machine to my development server where I do not have the NetDiagram Trail installed. I can go to the url and view the diagram but other people (who do not have the NetDiagram Trial version intalled on their machines) who go to the url do not see the diagram. They get broken image links. I published all the files needed to run including the .jar file. Any help would be greatly appreciated : )
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Support for WMF
Reply #7 - Jun 3rd, 2009 at 6:15am
Print Post  
Hi,

Does the online demo work fine on the systems where you can't see the diagram?
http://mindfusion.eu/demos/jdiagram/start.htm

If it doesn't, most likely the problem is that there isn't JRE installed on these systems. If the demo loads successfully, see if the Java console displays any errors when you open your diagram page.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint