showing a picture

S

Sigge Sg

Can anyone tell me the code for showing a picture in the "my pictures"
folder? Please!!
I've just started programing, so I don't so much about it.
 
P

Pascal J. Bourguignon

Sigge Sg said:
Can anyone tell me the code for showing a picture in the "my pictures"
folder? Please!!
I've just started programing, so I don't so much about it.

Gandalf! Where are you when we need you?
Oh great Gandalf! Please tell us the secret code to show a picture from
the "My Pictures" folder!
 
S

Sigge Sg

Pascal said:
Gandalf! Where are you when we need you?
Oh great Gandalf! Please tell us the secret code to show a picture from
the "My Pictures" folder!

I meant in a ruby program!!!!!
 
A

Aldric Giacomoni

Sigge said:
Can anyone tell me the code for showing a picture in the "my pictures"
folder? Please!!
I've just started programing, so I don't so much about it.
Take a look at fxruby - www.fxruby.org . The tutorial will help you.

--Aldric
 
P

Philip McDonald

[Note: parts of this message were removed to make it a legal post.]


I think he's trying to tell you to try to figure out the process on
your own, and come back with some ideas and a little work under your
belt.

I've been wrong before.

mac
 
P

Phlip

Sigge said:
I meant in a ruby program!!!!!

Pascal is being an anus. The group apologizes for him.

His point, however, is that the Gods help those who help themselves. There are
dozens of Ruby tutorials out there, and reciting them on this newsgroup will not
improve anything!
 
T

Tom Reilly

Sigge said:
Can anyone tell me the code for showing a picture in the "my pictures"
folder? Please!!
I've just started programing, so I don't so much about it.
For someone recently into programming, the internet does indeed supply
an almost unlimited supply of information, uncoordinated, unrelated, and
overwhelming and certainly not helpful.

Sometimes someone submitting a simple Ruby program which does what one
needs is just what someone needs to begin understanding the process so
that he is able to use the internet information more effectively. And
certainly he is not asking someone else to do his programming for him.

tr
 
T

Tim Hunter

Justin said:
RMagick is probably a good place to start for displaying messages.
(http://studio.imagemagick.org/RMagick/doc/usage.html#displaying)
I bet you could poke around and find some examples.

-Justin

Thanks for the recommendation, Justin, but while RMagick can do many
things, it can't display an image on MS Windows because its display
method depends on a X server, which doesn't exist for MS Windows. So it
goes.

I'm not a Win guru, but wouldn't the simplest thing to do be to start an
external image display program like IrfanView and tell it to display
the image?

my_image = "test.bmp"
system("start /wait i_view32 " + my_image)
 
M

Michael W. Ryder

Tim said:
Thanks for the recommendation, Justin, but while RMagick can do many
things, it can't display an image on MS Windows because its display
method depends on a X server, which doesn't exist for MS Windows. So it
goes.

I'm not a Win guru, but wouldn't the simplest thing to do be to start an
external image display program like IrfanView and tell it to display
the image?

my_image = "test.bmp"
system("start /wait i_view32 " + my_image)
If you are running XP and have the file associations set you can just use:

system("start /wait " + my_image)

This way you can display multiple types of files without having to check
for extensions. I used this method in a C program I wrote years ago to
display mixed file types.
 
V

vimal

So far i've seen this group as very helpful and energetic than any
other groups.
For the first time i've seen someone like Pascal Bourguignon replying
in a confusing manner. :(

Group members come for help to solve their own needs and not to gather
or grab your programming capability.
 

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

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top