Pexels.com is a wonderful resource for some of the very best photography on the internet. The best about it: All images on that platform can be used without any limitation. Thus, the creators of Pexels.com offer an API to retrieve images. This only called for a wonderful Delphi component that allows you to retrieve images easily.
This is a view of the demo application in the Delphi IDE:
This is the running demo:
And this is how much code it takes for the Demo application to offer the functionality that is shown:
procedure TForm1.Button1Click(Sender: TObject); begin Pexels.Keyword := txtKeyword.Text; Pexels.Fetch; end;
It shows how easy it makes working with the image repository from Pexels.com using the component.
The component has full dataset support and completely abstracts from the handling of the API. You can completely concentrate on using a keyword to retrieve a dataset and request images.
Stay tuned for more. (I just noticed that I mislabeled the height with ‘Width’ as well, but it is only the column header…)