🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: jpg to bmp from FrameCallbackProc without fileio

#315
From: Peter Fagerbrant
Date: Mon, 17 Jan 2005 14:08
24 lines
1691 bytes
>> Any sugestions?
>
> Can you assign the data to a stream and then to a TJPEGImage ?
I have not been so successful in this yet. I am working on it right now.


>   TJPEGImage *JPEGImage = new TJPEGImage;
>
>   JPEGImage->LoadFromStream ( .... )
>
>   Graphics::TBitmap *Bitmap = new Graphics::TBitmap;
>
>   Bitmap->Assign ( JPEGImage);
>
>   // use bitmap        \
>
I would prefer to manage without the TBitmap. As of my understanding the 
TJPEGImage does contains the bitmap if I call the DIBNeded, but its read 
only. Or is it unacessible completly?
My tought was to read the bitmap and copy it to the bitmaparray becuse my 
application depends on the bitmaparray in more the a couple of places.

reg
/PFa 
Technical Details
Message-ID: <41ebc6d3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41ebb760@newsgroups.borland.com> <41ebbf15$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>
Subject: Re: jpg to bmp from FrameCallbackProc without fileio
Date: Mon, 17 Jan 2005 15:08:14 +0100
Lines: 26
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: <41ebc6d3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1105970899 193.14.171.139 (17 Jan 2005 06:08:19 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail