I have RGB information about the pixels in a line. I need to draw the images in JPEG or PNG or BMP format using these information from the pixels.I dont know how to do this in java. Somebody help me out on how to start solving it out

i don't know how it is helpful..

you change pixels into byteArray then write this array

ImageOutputStream ios = ImageIO.createImageOutputStream(byteArray );

and write it as BufferedImage with JPEG format...or ehich you need(png...)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.