Solved

Jpeg Code?

Posted on 2000-02-24
1
288 Views
Last Modified: 2010-04-04
I've just starting using Delphi and I'm not very familiar with it. What I'm trying to do is edit a program someone else wrote. My problem is that the program right now only opens bitmap files when I try to open an image. What I need it to do is open jpegs. Is there some simple code that I could add to do this. I've already tryed looking in the Jpeg folder on the Delphi 3 cd but this doesn't really help me at all where I'm not very familiar. If someone could explain how to do this it would be greatly appreciated. Thanks.
0
Comment
Question by:Jacaman
[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
1 Comment
 
LVL 8

Accepted Solution

by:
ZifNab earned 5 total points
ID: 2555281
Hi Jacaman,

Installing JPEG Components that Ship with Delphi 3

Category   :Delphi 3.x
Platform   :All-32Bit
Product    :All32Bit,  

Description:
Step 1 - Copying the JPEG files to your hard drive

  Insert your Delphi 3 CD in your CD-ROM drive.
  In the Explorer, browse to the INFO\EXTRAS directory.
  To copy the JPEG folder, drag and drop it from the Explorer to
  another folder, e.g. C:\MyStuff.
  All the JPEG files should now be in C:\MyStuff\JPEG.
  To make thing easier for us, now copy all the files from the
  C:\MyStuff\JPEG\OBJ folder to the C:\MyStuff\JPEG folder.
  Do this by, in the Explorer, selecting all the files in the
  C:\MyStuff\JPEG\OBJ. When all files are selected, right click
  and choose Copy. Then browse to C:\MyStuff\JPEG and choose
  Paste.

Step 2 - Installing the JPEG components

  Launch Delphi 3.0
  From Delphi's main menu, select Component | Install Component
  You'll should now see the "Install Component" dialog.
  Hit the Browse button next to the Unit file name box.
  In the "Unit file name" dialog, browse to C:\MyStuff\JPEG.
  Select the file named JPEG.PAS and hit Open.
  The Unit file name box should now be filled in properly.
  Make sure the Package file name is set to the Delphi User's
  Components package, which by default is in this location:
    C:\Program Files\Borland\Delphi 3\Lib\dclusr30.dpk
  Hit OK.
  You'll now see a "Confirm" dialog, saying that the package
  will be installed.
  Hit Yes.
  You should now see an "Information" dialog, saying that the
  package is installed.
  Exit the package editor and make sure you save the changes
  to the package.

Step 3 - Using the JPEG component

  Simply drop down a TImage and load a JPEG into the Picture
  property. Also, make sure the JPEG unit is in the USES clause,
  so that the JPEG stuff is registered at run-time.
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month4 days, 3 hours left to enroll

630 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