🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to draw into a jpeg image

#462
From: Remy Lebeau (TeamB)
Date: Tue, 01 Jun 2004 22:23
22 lines
1539 bytes
"Mario Sernicola" <mariosernicola@nospam.libero.it> wrote in message
news:40bcd795$1@newsgroups.borland.com...


>          Timage1->Canvas->Pen->Width = 1;
<snip>
> a message error appears:
>
> "Can only modify an image if it contains a bitmap"

The error is correct.  The Canvas property is only valid when the Picture
contains a TBitmap.

> How can I draw on TImage either if it contains a BMP or JPG???

You can't.  You would have to convert the JPG into a BMP first, then draw on
it, then convert it back into a JPG again.  The problem is that JPG is a
lossy format.  The more you alter it, the more image quality it loses.


Gambit
Technical Details
Message-ID: <40bd02cb@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.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
References: <40bcd795$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: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.multimedia
References: <40bcd795$1@newsgroups.borland.com>
Subject: Re: How to draw into a jpeg image
Date: Tue, 1 Jun 2004 15:23:01 -0700
Lines: 24
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: <40bd02cb@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1086128843 67.22.135.163 (1 Jun 2004 15:27:23 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.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