Subject | Re: [IBO] Load Image with File or Stream ? |
---|---|
Author | Mauricio Longo |
Post date | 2001-01-12T04:12:38Z |
I would recommend you save the format information in an additional field.
Unless someone has a better idea of how to persisit this info.
Mauricio Longo
Unless someone has a better idea of how to persisit this info.
Mauricio Longo
----- Original Message -----
From: "Nando Dessena" <nandod@...>
To: <IBObjects@egroups.com>
Sent: Thursday, January 11, 2001 1:14 PM
Subject: Re: [IBO] Load Image with File or Stream ?
> 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
>
>
> eGroups Sponsor
>
>
>