Image to Drawable


I wanted to use an image in a DrawableButton but I'm a little confused on how images and drawables are supposed to relate.  I assumed I could use images for the "setImages" function (inside DrawableButton) but it requires drawables and those don't seem to be implicitly available from images. 

See ButtonsPage()

Thanks.  The link you pasted gets a 404, for some reason.  In case anyone else needs it:


And the short answer is that you need to create a DrawableImage to do the conversion.

DrawableImage convert;


I guess that is a up-to-date link: