Solved

Display image from a link

Posted on 2014-02-20
4
499 Views
Last Modified: 2014-03-31
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
Comment
Question by:alpires
4 Comments
 
LVL 29

Assisted Solution

by:Randy Downs
Randy Downs earned 250 total points
ID: 39876087
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
 
LVL 26

Accepted Solution

by:
Sinisa Vuk earned 250 total points
ID: 39876113
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
 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 39966094
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

777 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