Article View: borland.public.cppbuilder.multimedia
Article #317Re: jpg to bmp from FrameCallbackProc without fileio
From: Hans Galema
Date: Mon, 17 Jan 2005 14:39
Date: Mon, 17 Jan 2005 14:39
27 lines
1878 bytes
1878 bytes
Hans Galema wrote:
> Provides no access to the internal bitmap image
> that it creates for the JPEG image.
Graphics::TBitmap *Bitmap = new Graphics::TBitmap;
Bitmap->Assign ( JPEGImage->Bitmap);
Will not compile because Bitmap is inaccessible. But ..
#include <jpeg.hpp>
class THackJPEGImage : TJPEGImage
{
public:
__property Bitmap;
} ;
Graphics::TBitmap *Bitmap = new Graphics::TBitmap;
Bitmap->Assign ( ((THackJPEGImage*)JPEGImage)->Bitmap);
does compile. And it assigns. So you could use the intern
Bitmap in this way directly.
Hans.
Technical Details
Message-ID:
<41ebce5b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!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>Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,e7775a35dcf064b6 X-Google-Attributes: gid10d0fc,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 17 Jan 2005 15:39:30 +0100 From: Hans Galema <notused@notused.nl> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.multimedia Subject: Re: jpg to bmp from FrameCallbackProc without fileio References: <41ebb760@newsgroups.borland.com> <41ebbf15$1@newsgroups.borland.com> <41ebc6d3$1@newsgroups.borland.com> <41ebcb8c$1@newsgroups.borland.com> In-Reply-To: <41ebcb8c$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.201.248 Message-ID: <41ebce5b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1105972827 129.125.201.248 (17 Jan 2005 06:40:27 -0800) Lines: 27 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!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