How to view image using TFileOpenDialog

Does anyone know how to display an image in a TFileOpenDialog preview?

I use ImageEn to display image information and add additional file type support to the dialog. For example ... I can download image information about jp2, j2k and other types of files that are not supported, but how to load an unsupported image type for preview using ImageEn.

I display image information in a dialog box that works well, but I cannot find any information on how to load an unsupported image in PreviewHandler anywhere. I can use ImageEnIO to get file information as well as a bitmap.

TFileOpenDialog

Does TFileOpenDialog use a preview handler to display an image, or some other way?

Sorry, I don’t have code to display the image, but I don’t know how to implement it.

Rodrigo commented on hosting preview handlers in Delphi VCL applications. that Windows Explorer doesn’t use a preview handler to preview images ... so I suppose TFileOpenDialog uses the same API as Windows Explorer, but I'm not even sure about that. http://theroadtodelphi.wordpress.com/2013/05/24/hosting-preview-handlers-in-delphi-vcl-applications/

If this question is too wide to accept, I will delete the question.

+6
source share
1 answer

...that the windows explorer does not use a preview handler to preview the images. When I said that I mean standard image formats like gif, jpeg, bmp, png, etc. For other custom formats, you must implement the Preview handler, in addition, you can register a thumbnail using Thumbnail Handlers and IThumbnailProvider .

+4
source

Source: https://habr.com/ru/post/945811/


All Articles