How to write an pixel array into an image file???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • janaki112
    New Member
    • Dec 2006
    • 5

    How to write an pixel array into an image file???

    my 1 dimensional pixel array is named => intensity (got by using pixel grabber)

    I have created an image using

    Code:

    Container n=new Container();
    Image img=n.createIma ge(new MemoryImageSour ce width,height,in tensity,0,width );


    Please tell me how to write this "img" to a file...?
  • horace1
    Recognized Expert Top Contributor
    • Nov 2006
    • 1510

    #2
    Originally posted by janaki112
    my 1 dimensional pixel array is named => intensity (got by using pixel grabber)

    I have created an image using

    Code:

    Container n=new Container();
    Image img=n.createIma ge(new MemoryImageSour ce width,height,in tensity,0,width );


    Please tell me how to write this "img" to a file...?
    have a look at
    http://java.sun.com/j2se/1.4.2/docs/guide/imageio/index.html

    Comment

    Working...