🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #470

Re: How to draw into a jpeg image

#470
From: Giuliano
Date: Thu, 03 Jun 2004 00:06
24 lines
1836 bytes
On Wed, 2 Jun 2004 11:00:51 -0700, "Remy Lebeau \(TeamB\)"
<gambit47.no.spam@no.spam.yahoo.com> wrote:

>
>"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
>

Have you tried it?
Technical Details
Message-ID: <trqsb05fi3p7u5vfo93ub8go8kflfuspqj@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40bcd795$1@newsgroups.borland.com> <40bd02cb@newsgroups.borland.com> <40bd8664$1@newsgroups.borland.com> <7s5rb05gt1theg28fcvkmrgd4jla7cvno1@4ax.com> <40be16d6$1@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: Giuliano <gcardinali@remove.adhoc.net>
Newsgroups: borland.public.cppbuilder.multimedia
Subject: Re: How to draw into a jpeg image
Date: Thu, 03 Jun 2004 02:06:41 +0200
Message-ID: <trqsb05fi3p7u5vfo93ub8go8kflfuspqj@4ax.com>
References: <40bcd795$1@newsgroups.borland.com> <40bd02cb@newsgroups.borland.com> <40bd8664$1@newsgroups.borland.com> <7s5rb05gt1theg28fcvkmrgd4jla7cvno1@4ax.com> <40be16d6$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.91/32.564
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.72.236.131
X-Trace: newsgroups.borland.com 1086221319 81.72.236.131 (2 Jun 2004 17:08:39 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail