🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to draw into a jpeg image

#461
From: Mario Sernicola
Date: Tue, 01 Jun 2004 19:23
26 lines
1523 bytes
Hi,

I've a TImage that contains a JPEG image

I'd like to draw on it but when I try to draw a point or a line with

//--------------------------
...
         tagPOINT mousepos;
         GetCursorPos(&mousepos);
         int x = mousepos.x - Left;
         int y = mousepos.y - Top;
         Timage1->Canvas->Pen->Width = 1;
         Timage1->Canvas->Pen->Mode = pmNot;
         Timage1->Canvas->Ellipse(x, y, x+3, y+3);
//--------------------------

a message error appears:

"Can only modify an image if it contains a bitmap"

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

Thanks

Mario Sernicola
Technical Details
Message-ID: <40bcd795$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.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

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d0fc,57413bdb9b690d15,start
X-Google-Attributes: gid10d0fc,public
Reply-To: "Mario Sernicola" <mariosernicola@nospam.libero.it>
From: "Mario Sernicola" <mariosernicola@nospam.libero.it>
Newsgroups: borland.public.cppbuilder.multimedia
Subject: How to draw into a jpeg image
Date: Tue, 1 Jun 2004 21:23:03 +0200
Lines: 28
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: 80.181.137.24
Message-ID: <40bcd795$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1086117781 80.181.137.24 (1 Jun 2004 12:23:01 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.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