Article View: borland.public.cppbuilder.nativeapi
Article #7667Re: Bmp To Jpg
From: Remy Lebeau (TeamB)
Date: Tue, 04 Jan 2005 21:02
Date: Tue, 04 Jan 2005 21:02
21 lines
1447 bytes
1447 bytes
"Ali" <ali_info@hotpop.com> wrote in message
news:41dafbd4@newsgroups.borland.com...
> How Can In Convert Bmp File To Jpg?
If you have the TJPEGImage class installed, just Assign() a TBitmap to the
TJPEGImage. TJPEGImage is pre-installed with BCB4+, and is available as a
separate download for BCB3. For example:
#include <jpeg.hpp>
#include <memory>
std::auto_ptr<Graphics::TBitmap> bmp(new Graphics::TBitmap);
std::auto_ptr<TJPEGImage> jpg(new TJPEGImage);
// load the bmp as needed, then ...
jpg->Assign(bmp.get());
// use jpg as needed...
Gambit
Technical Details
Message-ID:
<41db03ef@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41dafbd4@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9d3408e3c47a785b X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <41dafbd4@newsgroups.borland.com> Subject: Re: Bmp To Jpg Date: Tue, 4 Jan 2005 13:02:05 -0800 Lines: 23 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: 68.69.17.41 Message-ID: <41db03ef@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1104872431 68.69.17.41 (4 Jan 2005 13:00:31 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail