Solved

How to save a pic under pic-format ?

Posted on 1998-10-21
3
142 Views
Last Modified: 2013-11-19
How can i save (or convert) a picture int the
GIF/JPEG - Format ???
0
Comment
Question by:josef_hd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 50 total points
ID: 1343754
You can use TJPEGImage to do the JPEG side of things. For the GIF side of things look at http://ftp/d20free/gifimage.exe.

Cheers,

Raymond.
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1343755
hi josef_hd,

oops, looks like somebody already answered it...

well, here is the one proposed with others, JPEG...

lot's of free components already available for this :

e.g.
 http://torry.rimini.com/vcl/graphics/gifimage.zip
 http://torry.rimini.com/vcl/graphics/gifimage.exe
 http://torry.rimini.com/vcl/graphics/jpgimg.zip
 http://torry.rimini.com/vcl/graphics/nviewlib.zip
 http://torry.rimini.com/vcl/graphics/imagervr.zip
 

Regards, Zif.
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1343756
Here is a simple example to convert  BMP to a JPG file and then save it on a disk...
uses JPEG;
//--------------------
var
  MyJpeg: TJpegImage;
  Image1: TImage;
begin
  Image1:= TImage.Create;
  MyJpeg:= TJpegImage.Create;
  try
    Image1.LoadFromFile('TestImage.BMP');  // Load the Bitmap from a file
    MyJpeg.Assign(Image1.Picture.Bitmap);  // Assign the BitMap to MyJpeg
    MyJpeg.SaveToFile('MyJPEGImage.JPG'); // Save the JPEG to Disk
  finally
    MyJpeg.Free;
    Image1.Free;
  end;
end;

Regards,
Viktor Ivanov
0

Featured Post

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
It’s easy to embed any of your public Prezi presentations on your website or social network to share with others. Learn how simple it is in this tutorial.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Suggested Courses
Course of the Month7 days, 17 hours left to enroll

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question