image-file

Paint java GUI component to image file

Let's say I have JButton test = new JButton("Test Button"); and I want to draw the button into an image object and save it to a file. I tried this: BufferedImage b = new BufferedImage(500, 500, BufferedImage.TYPE_INT_ARGB); test.paint(b.createGraphics()); File output = new File("C:\\screenie.png"); try { ImageIO.write(b, "png...

Reading Canon CR2 raw image files in .NET

Are there any free-to-use libraries for .NET so that I can read Canon's raw format, CR2, into my image processing application, retaining the full color depth? I believe it is a linear 14-bit/channel integer format, however some processing is required due to the layout of the image sensor array. I don't want it in crappy 8-bit/channel pr...