Solved

How to save a pic under pic-format ?

Posted on 1998-10-21
3
135 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
3 Comments
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 50 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
I've been using this technique since Adobe CS2, and it should work with any version of Illustrator that includes the appearance panel. In this tutorial we'll create a button using the appearance panel in Adobe Illustrator, and then save it as a r…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
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":…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now