Article View: borland.public.cppbuilder.multimedia
Article #473Re: How to draw into a jpeg image
From: Giuliano
Date: Thu, 03 Jun 2004 09:18
Date: Thu, 03 Jun 2004 09:18
41 lines
2209 bytes
2209 bytes
On Thu, 3 Jun 2004 02:06:01 -0700, "Remy Lebeau \(TeamB\)"
<gambit47.no.spam@no.spam.yahoo.com> wrote:
>
>"Giuliano" <gcardinali@remove.adhoc.net> wrote in message
>news:kcktb098ube80ktpgcev2nmccevjlui7jc@4ax.com...
>
>> As far as I know, the JPGE algorithm is lossy
>> when it encodes not when it decodes.
>
>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?
>
>
>Gambit
>
What do you think is happening when you assign a JPG to a BMP?
Image1->Picture->Bitmap->Assign( JPG.get() );
It converts the JPG in a DIB (or DDB) and it's loseless because the lossy is
in the encoding operation, so doing
Image1->Picture->Bitmap->Assign( JPG.get() );
or dooing
Image1->Picture->Bitmap->Assign( JPG.get() );
or
Image1->Picture->Graphic = JPG.get();
is the same thing.
See the picture?
Giuliano
Technical Details
Message-ID:
<40beec16.149288578@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!hammer.uoregon.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!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:18:25 GMT Message-ID: <40beec16.149288578@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 1086254330 82.89.247.6 (3 Jun 2004 02:18:50 -0700) Lines: 42 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!hammer.uoregon.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail