User Profile

Collapse

Profile Sidebar

Collapse
hridyakrishna
hridyakrishna
Last Activity: Dec 5 '11, 10:36 AM
Joined: Dec 5 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to give variable containing path in an image reading syntax

    Program:

    public void imagdisp(String m)
    {
    try
    { image =
    ImageIO.read(th is.getClass().g etResource(m));
    } catch(Exception e)
    {
    System.out.prin tln(e);
    }
    c = new ImageCanvas( image );
    add( c );
    }

    Here variable m containing image path
    See more | Go to post

  • hridyakrishna
    started a topic image display
    in Java

    image display

    We have a program for displaying an image wherein image uri is got from xml structure.As output we got only blank frame.
    Program is :




    public class DOM extends Frame
    {
    ImageCanvas c;
    BufferedImage image=null;
    public static void main(String[] arg)
    {
    DOM ob=new DOM();
    ob.addWindowLis tener( new WindowAdapter()
    { public...
    See more | Go to post
No activity results to display
Show More
Working...