Article View: borland.public.cppbuilder.multimedia
Article #469Re: How to draw into a jpeg image
From: Remy Lebeau (TeamB)
Date: Wed, 02 Jun 2004 18:00
Date: Wed, 02 Jun 2004 18:00
18 lines
1708 bytes
1708 bytes
"Giuliano" <gcardinali@remove.adhoc.net> wrote in message
news:7s5rb05gt1theg28fcvkmrgd4jla7cvno1@4ax.com...
> // oppure... assegna il JPEG appena creato ad un componente TImage
> Image1->Picture->Bitmap->Assign( JPG.get() );
You can (and should) store the JPG into the TImage directly:
Image1->Picture->Graphic = JPG.get();
TJPEGImage derives from TGraphic, and thus can be used with TPicture
directly. Internally, the Graphic property will make a copy of the source
JPG. Do not keep converting it to a bitmap. The more conversions you do,
the more quality is lost from the image since JPG is a lossy format.
Gambit
Technical Details
Message-ID:
<40be16d6$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news-in.ntli.net!colt.net!newsfeed.icl.net!proxad.net!203.109.252.33.MISMATCH!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>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d0fc,57413bdb9b690d15 X-Google-Attributes: gid10d0fc,public From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.multimedia References: <40bcd795$1@newsgroups.borland.com> <40bd02cb@newsgroups.borland.com> <40bd8664$1@newsgroups.borland.com> <7s5rb05gt1theg28fcvkmrgd4jla7cvno1@4ax.com> Subject: Re: How to draw into a jpeg image Date: Wed, 2 Jun 2004 11:00:51 -0700 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 67.22.135.163 Message-ID: <40be16d6$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1086199510 67.22.135.163 (2 Jun 2004 11:05:10 -0700) Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news-in.ntli.net!colt.net!newsfeed.icl.net!proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail