Solved

Jpeg Code?

Posted on 2000-02-24
1
284 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
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

808 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