Solved

How to save a pic under pic-format ?

Posted on 1998-10-21
3
140 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Learn how to create interesting presentations by including videos to keep your audience engaged using Prezi. Select "Insert" from the top menu in your Prezi editor: Select "YouTube Video": Paste the video URL into the prompt: "Select "Insert":…
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…

732 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