Solved

Display image from a link

Posted on 2014-02-20
4
479 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 25

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 36

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now