Board index » delphi » Loading images during runtime??

Loading images during runtime??

I want to able to load an image during run time. The user will select from a
list box and based on what they choose a picture will be loaded, Any
suggestions?
Thanks and appreciation's
Charl

 

Re:Loading images during runtime??


  Ok, suggestions for what?   Pictures to use?    :)       Use a TListBox,
TImage and a TImageList...

--
Jason Wallace
SL Software
Dark...@SLSoftware.reno.nv.us
--
"We are Microsoft.  Resistance is Futile.  You will be Assimiliated."

Quote
Charl wrote in message <6fecgq$jd...@plug.news.pipex.net>...

>I want to able to load an image during run time. The user will select from
a
>list box and based on what they choose a picture will be loaded, Any
>suggestions?

Re:Loading images during runtime??


..And if you want to load a jpg, be sure to include "jpeg" in your uses
block.  

Quote
Jason Wallace wrote:

>   Ok, suggestions for what?   Pictures to use?    :)       Use a TListBox,
> TImage and a TImageList...

> --
> Jason Wallace
> SL Software
> Dark...@SLSoftware.reno.nv.us
> --
> "We are Microsoft.  Resistance is Futile.  You will be Assimiliated."

> Charl wrote in message <6fecgq$jd...@plug.news.pipex.net>...

> >I want to able to load an image during run time. The user will select from
> a
> >list box and based on what they choose a picture will be loaded, Any
> >suggestions?

Re:Loading images during runtime??


What about
Image1.picture.LoadFromFile(filename)

? Charl Y???? ?? T? <6fecgq$jd...@plug.news.pipex.net>...

Quote

>I want to able to load an image during run time. The user will select from
a
>list box and based on what they choose a picture will be loaded, Any
>suggestions?
>Thanks and appreciation's
>Charl

Re:Loading images during runtime??


Quote
George McDowell <mcdow...@mitre.org> wrote:
>..And if you want to load a jpg, be sure to include "jpeg" in your uses
>block.  

>Jason Wallace wrote:

>>   Ok, suggestions for what?   Pictures to use?    :)       Use a TListBox,
>> TImage and a TImageList...

>> --
>> Jason Wallace
>> SL Software
>> Dark...@SLSoftware.reno.nv.us
>> --
>> "We are Microsoft.  Resistance is Futile.  You will be Assimiliated."

>> Charl wrote in message <6fecgq$jd...@plug.news.pipex.net>...

>> >I want to able to load an image during run time. The user will select from
>> a
>> >list box and based on what they choose a picture will be loaded, Any
>> >suggestions?

You can use something like:
  Image.Picture,loadFromFile(<picture>)
Willem Nieuwenhuis
Ilwis department, ITC
nieuwenh...@itc.nl

Other Threads