Re: Load Bitmap

2009-10-03 Thread Josh Daghlian
On Oct 3, 8:27 pm, Sean Devlin wrote: > Take a look at the javax.imageio.ImageIO class.  There are some useful > static methods there for loading files.  Also, if you're going to be > doing image editing, I'd suggest reading the AWT sections in Cornell & > Horstmann. > > http://www.horstmann.com/

Re: Load Bitmap

2009-10-03 Thread Sean Devlin
Take a look at the javax.imageio.ImageIO class. There are some useful static methods there for loading files. Also, if you're going to be doing image editing, I'd suggest reading the AWT sections in Cornell & Horstmann. http://www.horstmann.com/corejava.html Both volumes should be required rea

Re: Load Bitmap

2009-10-03 Thread John Newman
Actually, that code is rather dated. An updated version might look like this. (Warning, not tested) ; grab-pixels :: BufferedImage -> [Integer] (defn grab-pixels "Returns an array containing the pixel values of the image" [image] (let [w (.getWidth image) h (.getHeight image)

Re: Load Bitmap

2009-10-03 Thread John Newman
I don't know much about it, but Yann N. Dauphin's Mona Lisa program might use what you're looking for: Clojure: Genetic Mona Lisa problem in 250 beautiful lines Here's the relevant code: > >1. ; grab-pixe

Load Bitmap

2009-10-03 Thread prishvin
Dear friends, I have some experience in lisp and now want to write a small program in clojure. The question is, how can I load a gray scale bitmap and how can i access individual pixels in it. Thank you in advance. M.Prishvin. --~--~-~--~~~---~--~~ You received