Article View: borland.public.cppbuilder.multimedia
Article #319Re: jpg to bmp from FrameCallbackProc without fileio
From: Peter Fagerbrant
Date: Mon, 17 Jan 2005 15:20
Date: Mon, 17 Jan 2005 15:20
29 lines
2035 bytes
2035 bytes
> ((THackJPEGImage*)JPEGImage)->Bitmap->Canvas->TextOut ( 0, 0, "AAAA" ); > > Bitmap->Assign ( ((THackJPEGImage*)JPEGImage)->Bitmap); > > Image1->Picture->Bitmap->Assign ( Bitmap ); \ > > delete Bitmap; > > delete JPEGImage; Thanks Hans. I got it working now. I using: BYTE *MemPtr = lpVHdr->lpData; stream->Write(MemPtr, lpVHdr->dwBytesUsed); stream->Position = 0; JPEGImage->LoadFromStream ( stream ); Bitmap->Assign ( JPEGImage); But I am going to try your "hack" and se if it's faster. I making a aplikation that measures a drop of water. Angle, Height, Volume etc. I need the speed becuse I measure while the waterdrop absorbs or dunsting. Many thanks best reg Peter Fagerbrant
Technical Details
Message-ID:
<41ebd7a4@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newshosting.com!nx01.iad01.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<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>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> Subject: Re: jpg to bmp from FrameCallbackProc without fileio Date: Mon, 17 Jan 2005 16:20:01 +0100 Lines: 31 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: <41ebd7a4@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1105975204 193.14.171.139 (17 Jan 2005 07:20:04 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newshosting.com!nx01.iad01.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail