🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.database
Article #56

Re: Jpge to BMP loaded from DB.

#56
From: ron Tuijnman
Date: Sat, 19 Jun 2004 10:17
29 lines
1679 bytes
"Sang Leen" <sangleen@hotmail.com> schreef in bericht
news:9fafbb40.0406150809.55e72ff8@posting.google.com...
> I load a Jpge image that is stored in the DB
> and I need to convert it to BMP and assing it to TQRImage.
> How can I do this.
> If I assing it like Jpge the image is not printed.

Another method:

procedure JPGaBMP(JpgFilePath : string; BmpSavePath : string);
var bmp : TBitmap;
    Jpg : TJpegImage;
begin
  bmp := TBitmap.Create;
  jpg := TJpegImage.Create;
  try
    jpg.LoadFromFile (jpgfilepath);
    bmp.Assign(jpg);
    bmp.SaveToFile (BmpSavePath + '.bmp');
  finally
    jpg.Free;
    bmp.Free;
  end;
end;

But I guess it's not what you are looking for...

Cu,
Ron
Technical Details
Message-ID: <40d412bd$0$207$cd19a363@news.wanadoo.nl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news2.euro.net!postnews1.euro.net!news.wanadoo.nl!not-for-mail
References: <9fafbb40.0406150809.55e72ff8@posting.google.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 115d96,55cab50176d463bf
X-Google-Attributes: gid115d96,public
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news2.euro.net!postnews1.euro.net!news.wanadoo.nl!not-for-mail
From: "ron Tuijnman" <Ron@nowhere.com>
Newsgroups: borland.public.delphi.database
References: <9fafbb40.0406150809.55e72ff8@posting.google.com>
Subject: Re: Jpge to BMP loaded from DB.
Date: Sat, 19 Jun 2004 12:17:33 +0200
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2739.300
Lines: 31
Message-ID: <40d412bd$0$207$cd19a363@news.wanadoo.nl>
Organization: Wanadoo
NNTP-Posting-Date: 19 Jun 2004 10:17:37 GMT
NNTP-Posting-Host: cd5113983.cable.wanadoo.nl
X-Trace: 1087640257 willi.euronet.nl 207 213.17.57.131:4932
X-Complaints-To: abuse@wanadoo.nl