Subject Re: [IBO] Load Image with File or Stream ?
Author Nando Dessena
Kridchada,

> > When I used Image ,
> >
> > Image1.Picture.LoadFormStream(Tstream);
> > or
> > Image1.Picture.LoadFormFile(Filename) ;
> >
> > How I can to know type of Picture in Image ( *.bmp, *.jpg,
> > *.gif ,*.tif ,etc..)
> > PS. Don't check File Extention!
> >
> > I'm sorry my English very poor
>
> I think the TPicture class will interrogate the stream somehow and make a
> determination as to what type it is. I'm not an expert in this area. May I
> suggest that you try one of the Borland newsgroups dedicated to questions
> like this?

The file extension is exactly what gets looked at to decide which
TGraphic subclass instantiate.
--
____
_/\/ando