🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11938

Re: Does TStream load Data (<1MB) to RAM?

#11938
From: PC Hua
Date: Thu, 08 Jan 2004 04:26
22 lines
1804 bytes
On Wed, 7 Jan 2004 16:45:27 -0800, Remy Lebeau (TeamB) 
<gambit47.no.spam@no.spam.yahoo.com> wrote:

>> Can I use TFileStream to load the file in small portions (between
>> the timer events) and then use TJPEGImage::LoadFromStream
>> to load the image?
>
> No.  LoadFromFile() loads the entire file in a single pass, and
> LoadFromStream() tries to load the entire image in full.  It is not
Yes, I mean to use LoadFromStream() to load the entire image. But before, 
the file is loaded using TFileStream::Read(void *Buffer, int Count) and I 
hope the LoadFromStream() will access the data from RAM and therefore will 
be a bit faster.

> possible
> to do incremental loadings with the VCL's image architecture.  If you 
> need
> that, then you will have to load and process the image data manually.

-- 
_/\__/\__/\__/\__/\__/\_
www.folksfun.com
Technical Details
Message-ID: <opr1fvyyfveb6hof@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!fr.ip.ndsoftware.net!proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <opr1fk36pbeb6hof@newsgroups.borland.com> <3ffca6c3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,fec004505ce4dded
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-07 20:37:05 PST
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Does TStream load Data (<1MB) to RAM?
References: <opr1fk36pbeb6hof@newsgroups.borland.com> <3ffca6c3$1@newsgroups.borland.com>
Message-ID: <opr1fvyyfveb6hof@newsgroups.borland.com>
Content-Type: text/plain; charset=iso-8859-15; format=flowed
From: PC Hua <home-at-huaonline.dot.com>
MIME-Version: 1.0
Date: Thu, 08 Jan 2004 15:26:48 +1100
User-Agent: Opera7.10/Win32 M2 build 2840
NNTP-Posting-Host: 203.194.21.162
X-Trace: newsgroups.borland.com 1073536008 203.194.21.162 (7 Jan 2004 20:26:48 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!fr.ip.ndsoftware.net!proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail