Conversion « Icon Image « Java Swing Q&A





1. Image conversion and compression.    coderanch.com

Hi, I'm trying to write a program to convert the CMYK profile file into RGB Colorspace and then to JPEG file format. Does anyone know of an easier way to do this. My program works for a smaller CMYK profile, but for larger ones it chokes. This is an urgent situation and all help is appreciated. Thanks.

3. Conversion of image format    coderanch.com

I am working on conversion of image format one to another. I have image and want to convert that into .EMF, .JPG,.PCT, .PNG, .EPS, TIF, .BMP, .WMF formats and also want to set color depth (24 bit, 8 bit) Color space (YUV 4:4:4, YUV 4:2:2 etc) , color operations (Invert, Gamma etc ) and also set the transparent color of image. ...

4. Swing to Image conversion    coderanch.com

another doubt import java.awt.*; import java.awt.event.*; import java.awt.image.BufferedImage; import java.io.*; import javax.imageio.ImageIO; import javax.swing.*; public class SaveEx { public static void main(String[] args) { JFrame f = new JFrame("SaveEx"); Container cp = f.getContentPane(); final Component comp = cp.add(new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, new JScrollPane(new JTextArea()), new JScrollPane(new JTextArea()))); JPanel south = new JPanel(); cp.add(south, BorderLayout.SOUTH); JButton save = (JButton) south.add(new JButton("save")); save.addActionListener(new ActionListener(){ public ...

5. conversion of pixel to millimeter    coderanch.com

Hello friends, sir, madam I want to set ruler/scale on my panel. This ruler is calibrated in millimeters(mm). I guess java has not provided any standard component to draw ruler. So I am trying to draw the ruler. I am thinking of drawing lines after each mm. For this I might need, after how much pixels should I draw that 1mm ...