Article View: borland.public.cppbuilder.multimedia
Article #439Re: JPEG properties
From: Colin B Maharaj
Date: Tue, 10 Aug 2004 02:56
Date: Tue, 10 Aug 2004 02:56
28 lines
1822 bytes
1822 bytes
Thanks Remy for your coding tips...
Remy Lebeau (TeamB) wrote:
> "Colin B Maharaj" <noreply@myhost.com> wrote in message
> news:41175fe0@newsgroups.borland.com...
>
>
>>Hi all, is there anyway to get the dimensions of a jpeg
>>without opening it and loading it into a Bitmap memory block.
>
>
> TJPEGImage inherits Width and Height properties from TGraphic. You don't
> need to convert to TBitmap first:
>
> AnsiString MakeJPEGHtmlWrapper(TStringList * L)
> {
> //...
> TJPEGImage *jpg = new TJPEGImage;
> //...
> jpg->LoadFromFile(B);
> //..
> A += ( "width: " + IntToStr(jpg->Width) + "px; height: " +
> IntToStr(jpg->Height) + "px; \">" );
> //...
> delete jpg;
> //...
> }
Technical Details
Message-ID:
<41183954$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41175fe0@newsgroups.borland.com> <4117ac8f@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,6720cf3f1348e602 X-Google-Attributes: gid10d0fc,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 09 Aug 2004 22:56:19 -0400 From: Colin B Maharaj <noreply@myhost.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7a) Gecko/20040219 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.multimedia Subject: Re: JPEG properties References: <41175fe0@newsgroups.borland.com> <4117ac8f@newsgroups.borland.com> In-Reply-To: <4117ac8f@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 200.108.15.154 Message-ID: <41183954$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1092106580 200.108.15.154 (9 Aug 2004 19:56:20 -0700) Lines: 28 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail