Fork me on GitHub
#quil
<
2019-06-18
>
grierson20:06:33

Keep getting ‘:cause background image must be the same size as your application’ but image matches size?

grierson20:06:46

created a data folder in the same folder as my draw.clj

pez20:06:57

I recognize having problems with this, but can’t for the life of me recall what it was about…

grierson20:06:02

Do you know how I can get the height and width of an image?

Eric Ervin22:06:35

In Windows Explorer, I sometimes add a Dimensions column to my list of images. I usually resize an image in The Gimp and see the size of it there.

Eric Ervin23:06:02

I found an example where I measure an image in quil. I think it's java interop.

(defn setup []
  (q/frame-rate 12)
  (let [img  (q/load-image "/resources/img-a.jpg")]
    (println (str (.width img) " " (.height img)))))