[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

showing a picture

Sigge Sg

2/20/2009 2:54:00 PM

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.
--
Posted via http://www.ruby-....

14 Answers

pjb

2/20/2009 3:11:00 PM

0

Sigge Sg <siggesg@hotmail.com> writes:

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

--
__Pascal Bourguignon__

Sigge Sg

2/20/2009 3:59:00 PM

0

Pascal J. Bourguignon wrote:
> Sigge Sg <siggesg@hotmail.com> writes:
>
>> 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!

I meant in a ruby program!!!!!
--
Posted via http://www.ruby-....

aldric[removeme]

2/20/2009 4:45:00 PM

0

Sigge Sg wrote:
> 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

Philip McDonald

2/20/2009 5:29:00 PM

0

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

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


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


Phlip

2/20/2009 5:37:00 PM

0

Sigge Sg wrote:
> Pascal J. Bourguignon wrote:
>> Sigge Sg <siggesg@hotmail.com> writes:
>>
>>> 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!
>
> 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!

Jeff Schwab

2/20/2009 5:53:00 PM

0

Pascal J. Bourguignon wrote:
> Sigge Sg <siggesg@hotmail.com> writes:
>
>> 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!

Speak friend, and enter.

Marc Heiler

2/20/2009 6:08:00 PM

0

> Speak friend, and enter.

No, go away. We dont want any Gandalf here.
--
Posted via http://www.ruby-....

Tom Reilly

2/20/2009 7:13:00 PM

0

Sigge Sg wrote:
> 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

Justin Collins

2/21/2009 12:07:00 AM

0

Sigge Sg wrote:
> 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.
>

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

-Justin

Tim Hunter

2/21/2009 12:21:00 AM

0

Justin Collins wrote:
> Sigge Sg wrote:
>> 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.
>>
>
> RMagick is probably a good place to start for displaying messages.
> (http://studio.imagemagick.org/RMagick/doc/usage.html#...)
> 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)

--
RMagick: http://rmagick.ruby...