Load JPEG into array without VCL

Posted on 2003-03-18
Medium Priority
Last Modified: 2010-04-04
Is there the way to load JPEG into 2d array of RGB
not using JPEG unit, VCL, Graphics unit
(the program for OpenGL without VCL form)
Question by:AlegZanderR
LVL 27

Expert Comment

ID: 8158513

tjpegimage is not a component nor a vcl-object,
its just a tgraphic-descandend
LVL 17

Expert Comment

ID: 8158587

You have to write it yourself. Check this link for JPEG 1.02 file specification and conversion to RGB:

You may also search the net for free components that can do the job.

Regards, Geo

Author Comment

ID: 8158656
But I can't use the Graphics
Program size where 40Kb
And after Graphics will be 200Kb
LVL 35

Accepted Solution

Slick812 earned 150 total points
ID: 8164318
Hello AlegZanderR, I have done some None VCL (without the forms unit) windows programming, and I tried to replace the Graphics unit so it would be smaller, but there are so many things (especiallly with bitmaps, you have to use palettes, color depth, device dependent, DIB, OS2) that it was not worth the trouble, I just use the graphics unit, even though it adds some Kb. As for the Jpeg unit (which probally adds about 100 Kb), It may not be worth the trouble for that either, since many jpg replacements use .obj files and still come out adding 80 Kb. . .  however, if you really want to explorer smaller file sizes for the graphics and jpeg units. . . go to the Key Objects Library site and look at their XGraphic and XJpeg units, you can see these at


Author Comment

ID: 8164455
Thanks for your answer Slick
I'l try to find
(sorry for my English - I am from Ukraine)

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
SQL Database Recovery Software repairs the MDF & NDF Files, corrupted due to hardware related issues or software related errors. Provides preview of recovered database objects and allows saving in either MSSQL, CSV, HTML or XLS format. Ensures recov…

621 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