Showing a file

S

Sigge Sg

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??.
 
I

Ilan Berci

Sigge said:
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...
 
P

Pierre Pat

Sigge said:

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
 
S

Sigge Sg

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

can i display any picture with the Shoe library??
 
P

Pierre Pat

Sigge said:
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.
 
S

Sigge Sg

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??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top