BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Gif -> JPG Conversion

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Branden Johnson
Guest





PostPosted: Mon Mar 07, 2005 5:46 pm    Post subject: Gif -> JPG Conversion Reply with quote



How could I convert a GIF image file to a JPG image file. I thought that
the mcmDesigns TmcmImage component would do it if I just loaded it in an
changed the extension when I saved the image. It does change the extension
but the image is still a GIF. Does anyone know how to use mcmDesign
components or some other method of converting a GIF to JPG?

Thanks All,
Branden Johnson


Back to top
Mat Ballard
Guest





PostPosted: Mon Mar 07, 2005 10:21 pm    Post subject: Re: Gif -> JPG Conversion Reply with quote



Branden Johnson wrote:

Quote:
How could I convert a GIF image file to a JPG image file. I thought that

generally one does:
JPG := TJpegImage.Create;
JPG.Assign(GIF);
for TGraphic descendants.

if that does not work, try going through a bitmap.

Quote:
the mcmDesigns TmcmImage component would do it if I just loaded it in an
changed the extension when I saved the image. It does change the extension
but the image is still a GIF. Does anyone know how to use mcmDesign
components or some other method of converting a GIF to JPG?

ask the vendor,


cheers,


Mat

Back to top
Charles Hacker
Guest





PostPosted: Thu Mar 10, 2005 5:21 am    Post subject: Re: Gif -> JPG Conversion Reply with quote



Branden Johnson wrote:
Quote:

How could I convert a GIF image file to a JPG image file. I thought that
the mcmDesigns TmcmImage component would do it if I just loaded it in an
changed the extension when I saved the image. It does change the extension
but the image is still a GIF. Does anyone know how to use mcmDesign
components or some other method of converting a GIF to JPG?


Something like the following:

GifImage:=TGifImage.Create;
JPegImage:=TJPegImage.Create;

GifImage.LoadFromFile('c:test.gif');
JPegImage.Assign(GifImage);
JPegImage.CompressionQuality:=100;
JPegImage.Compress;
JPegImage.SaveToFile('c:test.jpg');

JPegImage.Free;
GifImage.Free;


--
Charles Hacker
Lecturer in Electronics and Computing
School of Engineering
Griffith University - Gold Coast
Australia

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.