🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#11937
From: Remy Lebeau (TeamB)
Date: Thu, 08 Jan 2004 00:45
19 lines
1641 bytes
"PC Hua" <home-at-huaonline.dot.com> wrote in message
news:opr1fk36pbeb6hof@newsgroups.borland.com...

> It's happening, when the image is huge then the TTimer delays.

That's possible, depending on what your code is actually doing.

> 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 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.


Gambit
Technical Details
Message-ID: <3ffca6c3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <opr1fk36pbeb6hof@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 17:03:17 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <opr1fk36pbeb6hof@newsgroups.borland.com>
Subject: Re: Does TStream load Data (<1MB) to RAM?
Date: Wed, 7 Jan 2004 16:45:27 -0800
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.138.253
Message-ID: <3ffca6c3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1073522371 67.22.138.253 (7 Jan 2004 16:39:31 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail