🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #332

Re: jpg to bmp from FrameCallbackProc without fileio

#332
From: Peter Fagerbrant
Date: Wed, 19 Jan 2005 13:07
27 lines
2356 bytes
> Well if Scanline[] was an array that would work. But if []
> is an operator it would fail. You could just give it a try.
>
> Hans.

I have tried to use scanline[0] to position the pointer at start of the 
bitmap array and then handle it as if it where a array, but receives an AV.
The help states that scanline is:
property void * ScanLine[int Row] = {read=GetScanline};

I run into this at a search on the newsgroup:
"When Scanline property is read(GetScanline is Called) and
TBitmap has DDB and DIB Section or TBitmap has only DDB,
TBitmap discards DIB Section if necessary and
and create DIB Section from DDB without Freeing DDB.

Subsequent References of Scanline proeprty cause same thing.
This behaviour make scanline property extremely slow!!
"
It suggested that I shuld do a 
((THackJPEGImage*)JPEGImage)->Bitmap->HandleType = bmDIB; or a dormant().

This does not help the performance in my case.
I will seek more and see what I can find.

reg/
PFa 
Technical Details
Message-ID: <41ee5b96@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41ebb760@newsgroups.borland.com> <41ebbf15$1@newsgroups.borland.com> <41ebc6d3$1@newsgroups.borland.com> <41ebcb8c$1@newsgroups.borland.com> <41ebce5b$1@newsgroups.borland.com> <41ebd086$1@newsgroups.borland.com> <41ebd7a4@newsgroups.borland.com> <41ebdb02@newsgroups.borland.com> <41ee20a3$1@newsgroups.borland.com> <41ee3744$1@newsgroups.borland.com> <41ee3e3f$1@newsgroups.borland.com> <41ee43e8$1@newsgroups.borland.com> <41ee4f26$1@newsgroups.borland.com> <41ee5665$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,e7775a35dcf064b6
X-Google-Attributes: gid10d0fc,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Peter Fagerbrant" <peter@fagerbrant.com>
Newsgroups: borland.public.cppbuilder.multimedia
References: <41ebb760@newsgroups.borland.com> <41ebbf15$1@newsgroups.borland.com> <41ebc6d3$1@newsgroups.borland.com> <41ebcb8c$1@newsgroups.borland.com> <41ebce5b$1@newsgroups.borland.com> <41ebd086$1@newsgroups.borland.com> <41ebd7a4@newsgroups.borland.com> <41ebdb02@newsgroups.borland.com> <41ee20a3$1@newsgroups.borland.com> <41ee3744$1@newsgroups.borland.com> <41ee3e3f$1@newsgroups.borland.com> <41ee43e8$1@newsgroups.borland.com> <41ee4f26$1@newsgroups.borland.com> <41ee5665$1@newsgroups.borland.com>
Subject: Re: jpg to bmp from FrameCallbackProc without fileio
Date: Wed, 19 Jan 2005 14:07:34 +0100
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 193.14.171.139
Message-ID: <41ee5b96@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1106140054 193.14.171.139 (19 Jan 2005 05:07:34 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail