Article View: borland.public.cppbuilder.multimedia
Article #474Re: How to draw into a jpeg image
From: Giuliano
Date: Thu, 03 Jun 2004 09:25
Date: Thu, 03 Jun 2004 09:25
15 lines
1968 bytes
1968 bytes
On Thu, 3 Jun 2004 02:06:01 -0700, "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> wrote: >What do you think is happening when you assign a BMP to a JPG? It encodes >it. You assign a bitmap to a JPG, you lose a little. Then you decode the >reduced JPG to a bitmap and then encode it back to a JPG, thus losing a >little again. See the pattern? ...moreover because, AFAIK, you can't modify the JPEG directly in TImage, yuo have to pass for a DIB then converting it into a JPEG again if you want a JPEG back. So this operation is lossy. Again, the GDI is not capable to display a JPEG directly becuase it should need to convert the JPEG into a DIB (or DDB) before to display it. So, in the VCL layer, the conversion from JPG to DIB od DDB has to happen, wich is loseless beacuse it's a decoding.
Technical Details
Message-ID:
<40bfecf8.149514656@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40bcd795$1@newsgroups.borland.com> <40bd02cb@newsgroups.borland.com> <40bd8664$1@newsgroups.borland.com> <7s5rb05gt1theg28fcvkmrgd4jla7cvno1@4ax.com> <40be16d6$1@newsgroups.borland.com> <e0rsb05dp8hb4tj7lmotgrpe1l18a9kt6v@4ax.com> <40be7116$1@newsgroups.borland.com> <kcktb098ube80ktpgcev2nmccevjlui7jc@4ax.com> <40beeafe$2@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d0fc,57413bdb9b690d15 X-Google-Attributes: gid10d0fc,public From: gcardinali@remove_adhoc.net (Giuliano) Newsgroups: borland.public.cppbuilder.multimedia Subject: Re: How to draw into a jpeg image Date: Thu, 03 Jun 2004 09:25:33 GMT Message-ID: <40bfecf8.149514656@newsgroups.borland.com> References: <40bcd795$1@newsgroups.borland.com> <40bd02cb@newsgroups.borland.com> <40bd8664$1@newsgroups.borland.com> <7s5rb05gt1theg28fcvkmrgd4jla7cvno1@4ax.com> <40be16d6$1@newsgroups.borland.com> <e0rsb05dp8hb4tj7lmotgrpe1l18a9kt6v@4ax.com> <40be7116$1@newsgroups.borland.com> <kcktb098ube80ktpgcev2nmccevjlui7jc@4ax.com> <40beeafe$2@newsgroups.borland.com> X-Newsreader: Forte Agent 1.5/32.451 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 82.89.247.6 X-Trace: newsgroups.borland.com 1086254758 82.89.247.6 (3 Jun 2004 02:25:58 -0700) Lines: 17 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail