Recent

Author Topic: Whats the go with jpgs?  (Read 4864 times)

The_fatace

  • Guest
Whats the go with jpgs?
« on: January 27, 2006, 01:34:49 pm »
Why won't jpgs display in TImage once compiled? they show up in design time even with the right packs installed. I tried loading a jpg into a TImage while the program is running and says it doesn't like the extension type.

also whats the jpg variable e.g. bmp is Tbitmap and delphi has jpgs as TJPEGImage.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
RE: Whats the go with jpgs?
« Reply #1 on: February 11, 2006, 03:34:04 pm »
Did you include jpeg unit on your uses clause??

You also need to include the code bellow on Compiler Options on Other UNit Files:

$(LazarusDir)/components/jpeg/

Anonymous

  • Guest
RE: Whats the go with jpgs?
« Reply #2 on: February 11, 2006, 06:13:00 pm »
Better: add the package JpegForLazarus to the project dependencies (Project Inspector).

 

TinyPortal © 2005-2018