Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 586
  • Last Modified:

Display image from a link

Hi Experts,

Exist some way to display external images in grid columns when the data source only contains links to the images ? In my data base only have the link, but I need show the image inside of the grid. I'm using delphi xe4 with firebird and IBO Objects

Could someone help me?

Thanks
Alexandre
0
alpires
Asked:
alpires
2 Solutions
 
Randy DownsOWNERCommented:
Maybe this will help - http://stackoverflow.com/questions/11067833/delphi-show-images-without-download

You can use this function (compiled and tested using Delphi 2010) to download a file over HTTP and store it in a TBitMap. It'll read all file types that have a registered support in Delphi's TGraphic hiearachy, and will auto-detect BMP, GIF, JPG and PNG file formats:
0
 
Sinisa VukCommented:
It is possible with using OnDrawColumnCell event. You can use TImageList for caching images. First, go through all records to cache images. This way you will have imageindex = recordNo. Resize them to size equal to cell size. Then draw images.
Some articles about draw image in grid.
http://delphi.about.com/library/weekly/aa032205a.htm
http://www.swissdelphicenter.ch/en/showcode.php?id=2209
0
 
Geert GruwezOracle dbaCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now