🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#11936
From: PC Hua
Date: Thu, 08 Jan 2004 00:32
13 lines
1279 bytes
I'm using TJPEGImage and LoadFromFile is called from a TThread. At the same 
time, I'm using TTimer to draw the screen. It's happening, when the image 
is huge then the TTimer delays.
Can I use TFileStream to load the file in small portions (between the timer 
events) and then use TJPEGImage::LoadFromStream to load the image?
Will this make a difference in the speed?

thanks
PC HUA

-- 
_/\__/\__/\__/\__/\__/\_
www.folksfun.com
Technical Details
Message-ID: <opr1fk36pbeb6hof@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,fec004505ce4dded,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-07 16:39:51 PST
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Does TStream load Data (<1MB) to RAM?
From: PC Hua <home-at-huaonline.dot.com>
MIME-Version: 1.0
Date: Thu, 08 Jan 2004 11:32:20 +1100
Message-ID: <opr1fk36pbeb6hof@newsgroups.borland.com>
User-Agent: Opera7.10/Win32 M2 build 2840
NNTP-Posting-Host: 203.194.21.162
X-Trace: newsgroups.borland.com 1073521940 203.194.21.162 (7 Jan 2004 16:32:20 -0700)
Lines: 13
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail