ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder
ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Browsing images on connected camera
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

stuartclennett@gmail.com

United Kingdom
65 Posts

Posted - Mar 07 2019 :  13:41:33  Show Profile  Reply
Hi,

I have a TImageEnFolderMView that I'm using to show images on the file system. I am "driving" that from a shell treeview component (select folder in treeview and display contents in ImageEnFolderMView1.

When I have a camera connected (in my case a Canon EOS) the camera shows up in the shell treeview. When I select that folder, I use SetFolderEx() on the TImageEnFolderMView component, but I get the following:

Error trying to create file handle for "This PC\Canon EOS 400D DIGITAL\". Error code: 3.

I saw this uservoice, that WPD was implemented in v6.... I guess I am using the wrong component? What's the recommended way to browse a connected camera that shows up in the Windows shell?

Many thanks
Stuart

The call stack if it helps:

iexWindowsFunctions             TIEFolderWatchThread.Create
iexWindowsFunctions             TIEFolderWatch.AllocWatchThread
iexWindowsFunctions             TIEFolderWatch.Start
iexFolderMView          302  +0 TImageEnFolderMView.StartMonitoring
iexFolderMView          302  +0 TImageEnFolderMView.RefreshFileListEx
iexFolderMView          302  +0 TImageEnFolderMView.SetFolderEx


Stuart Clennett
Delphi Berlin 10.1

xequte

4339 Posts

Posted - Mar 07 2019 :  14:46:49  Show Profile  Reply
Hi Stuart

At this stage, TImageEnFolderMView only supports standard Windows folders, not devices via WPD. I'll add that to the to-do list.

Take a look at the demo:

\ImageAcquisition\PortableDevices\WPDDemo.dpr

It would be fairly easy to convert that to use a TImageEnMView control instead of a TListView.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

stuartclennett@gmail.com

United Kingdom
65 Posts

Posted - Mar 07 2019 :  14:54:16  Show Profile  Reply
Hi Nigel,

Thanks for the reply & the demo suggestion - I'll take a look

Cheers

Stuart Clennett
Delphi Berlin 10.1
Go to Top of Page

stuartclennett@gmail.com

United Kingdom
65 Posts

Posted - Mar 08 2019 :  10:42:10  Show Profile  Reply
Hi,

Quick question, is there a way to just get the thumbnail from the device in WPD?

At the moment I'm using the TIEPortableDevices.CopyStreamFromDevice which is then scaled down as the thumbnail.

Thanks,

Stuart

Stuart Clennett
Delphi Berlin 10.1
Go to Top of Page

xequte

4339 Posts

Posted - Mar 09 2019 :  19:37:02  Show Profile  Reply
Hi Stuart

If you email me, I can give you an update that allows you to request a thumbnail when using TIEPortableDevices.CopyStreamFromDevice.

I will create a new demo soon too, showing TImageEnMView navigation of a portable device (extend the functionality in the PortableDevices demo).

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

stuartclennett@gmail.com

United Kingdom
65 Posts

Posted - Mar 10 2019 :  06:59:03  Show Profile  Reply
Hi Nigel,

That's great; email sent to nigel at xequte.

Many thanks,

Stuart

Stuart Clennett
Delphi Berlin 10.1
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: