| Windows with Delphi Windows API (94) Windows Filesystem (41) Windows Forms (69) Windows Graphics (38)
|
GIF / PNG / JPEG lightweight Image Control
(1 votes). Leave comments and/ or rate it.
Question: Does Windows have a lightweight image control to display GIF, PNG or JPEG images?Answer: Windows only seems not to have such a standard control for displaying JPEG, PNG and GIF images. You can (ab)use the ListView control for this purpose - ListView controls have the capability to display JPEG, PNG, GIF, BMP, WMF and EMF images.To use a TListView control as a simple image control, you need to send a message. See the other tip about this topic: Problem putting a background image on a TListView. Notes:
(where hCtlListView1 is the handle of the ListView control and where szFileName is the FULL path of the image file to be displayed). Comments:
|