Results 1 to 3 of 3
  1. #1
    dkaja is offline Member
    Join Date
    Apr 2008
    Posts
    2
    Rep Power
    0

    Default Dispaly of CGM Images and automatic Hotspotting

    Hello,

    We have requirement to disply images with .cgm extension in JSP based application. Based on my research, found that CGM images cannot be viewed directly on a browser unless we have some software or plug-ins.

    Any thoughts on how to enable viewing of CGM images in a browser and automatic hotspotting be achieved with CGM images.

    Can any one help me in this regard,its urgent...

    Thanks in advance

  2. #2
    new_2_java is offline Member
    Join Date
    Feb 2008
    Posts
    60
    Rep Power
    0

    Default

    Take a look at this link

    CGM Viewer - How to

  3. #3
    dkaja is offline Member
    Join Date
    Apr 2008
    Posts
    2
    Rep Power
    0

    Default

    I have already gone with CMGVA,but my reuirement is display the image on Web browser and automatic hotspotting.

    I did not find hotspotting anywhere in cgmva.

    with cgmva I can able to see only CGM image but not able to do Zoom in /Zoom out of the image and fallowing are my runtime errors(exceptions).


    Java Plug-in 1.6.0_05
    Using JRE version 1.6.0_05 Java HotSpot(TM) Client VM
    User home directory = C:\Users\krishna


    ----------------------------------------------------
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    ----------------------------------------------------

    Exception in thread "AWT-EventQueue-2" java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
    at java.awt.image.DirectColorModel.createCompatibleWr itableRaster(Unknown Source)
    at sun.awt.Win32GraphicsConfig.createAcceleratedImage (Unknown Source)
    at sun.awt.windows.WComponentPeer.createImage(Unknown Source)
    at java.awt.Component.createImage(Unknown Source)
    at CgmViewApplet.a(Unknown Source)
    at o.componentResized(Unknown Source)
    at java.awt.Component.processComponentEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Unknown attribute: 42
    Unknown attribute: 19
    Unknown attribute: 20
    Unknown attribute: 37
    Unknown attribute: 38
    Exception in thread "AWT-EventQueue-3" java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
    at java.awt.image.DirectColorModel.createCompatibleWr itableRaster(Unknown Source)
    at sun.awt.Win32GraphicsConfig.createAcceleratedImage (Unknown Source)
    at sun.awt.windows.WComponentPeer.createImage(Unknown Source)
    at java.awt.Component.createImage(Unknown Source)
    at CgmViewApplet.a(Unknown Source)
    at o.componentResized(Unknown Source)
    at java.awt.Component.processComponentEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Unknown attribute: 44
    Unknown attribute: 45


    Plaese help me to figure out....

Similar Threads

  1. Comparing Images
    By shaungoater in forum Advanced Java
    Replies: 0
    Last Post: 03-17-2008, 10:38 AM
  2. Images not displaying in JSP in IE7
    By chadscc in forum Advanced Java
    Replies: 0
    Last Post: 11-13-2007, 03:24 PM
  3. Help using images in Java
    By toby in forum Advanced Java
    Replies: 1
    Last Post: 08-07-2007, 05:54 AM
  4. Help with images...
    By toby in forum Java Applets
    Replies: 1
    Last Post: 08-04-2007, 05:25 AM
  5. Images in JSP
    By Daniel in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 06-05-2007, 06:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •