views:

84

answers:

1
        return toolkit.createImage(new MemoryImageSource(rawWidth, rawHeight, oneDPixMod, 0, rawWidth));

anyone knows how to show that image using panel or label maybe? do i need to use class Graphic, like g.drawImage()?

thks for the answer

A: 

Assuming you have a form with a PictureBox, just set the PictureBox's Image property to the return value from toolkit.CreateImage():

pictureBox1.Image = toolkit.CreateImage(...);
MusiGenesis
no PictureBox class in Netbeans bro,another solution maybe?
Sorry, thought this was a .Net question. Based on the .Net tag that AndreasT incorrectly added. You should correct the tags and add "java" and "netbeans".
MusiGenesis