Hi

This is easy....

uses jpeg;

procedure JpegToBmp(JpegFileName: string);
var jpeg: TJPEGImage;
  bmp: TBitmap;
begin
  jpeg := TJPEGImage.Create;
  try
    jpeg.LoadFromFile(JpegFileName);
    bmp := TBitmap.Create;
    try
      bmp.Assign(jpeg);
      bmp.SaveToFile(ChangeFileExt(JpegFileName, '.bmp'));
    finally
      bmp.free;
    end;
  finally
    jpeg.free;
  end;
end;

Omer Yasar Can
  ----- Original Message ----- 
  From: smart9dotcom 
  To: [email protected] 
  Sent: Sunday, May 15, 2005 11:32 AM
  Subject: [delphi-en] from .jpg to .bmp how ?


  Hello ..

  i want to ask how i can change .jpg image to .bmp image in Delphi ?


  thanks .




  -----------------------------------------------------
  Home page: http://groups.yahoo.com/group/delphi-en/
  To unsubscribe: [EMAIL PROTECTED] 



------------------------------------------------------------------------------
  Yahoo! Groups Links

    a.. To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/
      
    b.. To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]
      
    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



[Non-text portions of this message have been removed]



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to