I am a noob in programing, and have just learned some of the basics.
And i wonder if i could show a file (like a picture) when running the
program??.
···
--
Posted via http://www.ruby-forum.com/.
I am a noob in programing, and have just learned some of the basics.
And i wonder if i could show a file (like a picture) when running the
program??.
--
Posted via http://www.ruby-forum.com/.
Sigge Sg wrote:
I am a noob in programing, and have just learned some of the basics.
And i wonder if i could show a file (like a picture) when running the
program??.
yes...
--
Posted via http://www.ruby-forum.com/\.
Ilan Berci wrote:
Sigge Sg wrote:
I am a noob in programing, and have just learned some of the basics.
And i wonder if i could show a file (like a picture) when running the
program??.yes...
How??
--
Posted via http://www.ruby-forum.com/\.
Sigge Sg wrote:
How??
By using a GUI library. And for which one, it depends of your needs...
But if you just want to display a picture, the asiest way would be Shoes
I guess.
Shoes.app do
image "foo/bar.jpg"
end
But I guess the question is too vague to answer accurately
--
Posted via http://www.ruby-forum.com/\.
By using a GUI library. And for which one, it depends of your needs...
But if you just want to display a picture, the asiest way would be Shoes
I guess.Shoes.app do
image "foo/bar.jpg"
endBut I guess the question is too vague to answer accurately
can i display any picture with the Shoe library??
--
Posted via http://www.ruby-forum.com/\.
Sigge Sg wrote:
can i display any picture with the Shoe library??
At least for PNG, JPEG or GIF format, yes.
You can even make it point to an image on the net.
--
Posted via http://www.ruby-forum.com/\.
Sorry! i didn't understand the code.
I know i'm a noob.
What should I write if i wanna display a picture named "lol.JPEG" from
the "my picture" folder??
--
Posted via http://www.ruby-forum.com/.