Home » » Image in Java Program

Image in Java Program

Image in Java Program

Image in Java Program

Image in Java Program

import java.awt.*;
import java.applet.*;
public class ImageEg extends Applet
{
Image img;
public void init()
{
Image img;
public void init()
{
img=getImage(getCodeBase(),"33.jpg");
}
public void paint(Graphics g)
{
/*showstatus("URL="+getCodeBase()+"width="+img.getwidth(this)+"Height="+img.getHeight(this));*/
g.drawImage(img,100,100,400,400,this);
}
}

//<applet code="ImageEg.class" width=300 height=200></applet>

0 coment�rios:

Post a Comment

Link you don't want to vouch for Read more: https://html.com/seo/#ixzz5zVltiZ5g