Jpg image

Hi,
2 questions.

1. I need a jpeg image component that can
a. Read jpg image
b. Write jpg image
c. Allows changes to be made to jpg image

2. Is there any way that i can use fonts that are not installed but present in crrent directory (the directory containing exe file)

Thanks in advance.
LVL 1
m_adilAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Fatman121898Commented:
Hi M Adil,

On first question:
Listening too, hope somebody will answer.

On second question:

>First you should copy font file in directory where system fonts are placed.
For Windows95/98/NT4 this is :
c:\windows\fonts.
(It seems to me this step is optional, but I've not tried to skip it.)

>Second you should call API function
AddFontResource this way:
AddFontResource('c:\windows\fonts\myfont.ttf').

>Third you should call API function SendMessage this way:
SendMessage(HVND_BROADCAST, WM_FONTCHANGE, 0, 0)
in order to inform other applications for the new font.

Regards,
Jo.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
hubdogCommented:
first question
  I think you can use TJpegImage Class included in delphi.You can search TJpegImage in help ,then you will find the example of how to use it.
  Also you can find another example in
directory \delphi5\help\examples\jpeg

good luck

hubdog
0
m_adilAuthor Commented:
Hi,
I've found a bmp->jpg conversion component. Points goes to Fatman for the font reg. problem.
Fatman plz make ur comment as an answer

Thanks!!
0
m_adilAuthor Commented:
hubdog TjpegImage class can load (or may be save) jpg image but doesnot allow changes to be made to the image.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Graphics Software

From novice to tech pro — start learning today.