1

在 WIA 中,ExecuteCommand 出现异常:

The method or operation is not implemented

代码:

WIA.CommonDialog dialog = new WIA.CommonDialog();
WIA.Device camera = dialog.ShowSelectDevice(WIA.WiaDeviceType.CameraDeviceType, false, true);
WIA.Item takenItem = camera.ExecuteCommand("{AF933CAC-ACAD-11D2-A093-00C04F72DC3C}");

有什么帮助……?

4

1 回答 1

0

如果您遇到错误,您可能有不合适的相机。微软多年前取消了 WIA 库,最新的数码相机不支持 WIA 协议。以下是适用相机的简短列表:

数字 IXUS 430 数字 IXUS 500 数字 IXUS IIs PowerShot A310 PowerShot A400 PowerShot A75 PowerShot A85 PowerShot A95 PowerShot Pro1 PowerShot S1 IS PowerShot S60

还有(也许):

Agfa ePhoto 307
Agfa ePhoto 780
Agfa ePhoto 1280
Agfa ePhoto 1680
Canon PowerShot A5
Canon PowerShot A5 Zoom
Canon PowerShot Pro70
Casio QV 10
Casio QV 10A
Casio QV 11
Casio QV 30
Casio QV 70
Casio QV 100
Casio QV 120
Casio QV 200
Casio QV 300
Casio QV 700
Casio QV 770
Casio QV 5000SX
Casio QV-770 (IrTran-P)
Casio QV-5000SX (IrTran-P)
Casio QV-7000SX (IrTran-P)
Epson PhotoPC / CP-100
Epson PhotoPC 500 / CP-200
Epson PhotoPC 600 / CP-500
Epson PhotoPC 700 / CP-600
Epson PhotoPC 750Z / CP-700Z
FujiFilm DX-5/DS-10
FujiFilm DX-7/DS-20
FujiFilm DX-9/DS-30
FujiFilm MX-700
FujiFilm DS-300
HP PhotoSmart C20
HP PhotoSmart C30
HP PhotoSmart C200
JVC GCS1 (IrTran-P)
Kodak DC200
Kodak DC210
Kodak DC215
Kodak DC220 (USB only)
Kodak DC260 (USB only)
Kodak DC265 (USB only)
Kodak DC290 (USB only)
Kodak DC240 (USB only)
Kodak DC280 (USB only)
Konica Q-M100
Konica Q-M100V
Minolta Dimage V
Nikon CoolPix 900
Nikon CoolPix 950
Nikon CoolPix 700
Olympus D-200L
Olympus D-220L
Olympus D-300L
Olympus D-320L
Olympus D-340L
Olympus D-340R
Olympus D-500L
Olympus D-600L
Olympus D-400Z
Sanyo DSC-V1/VPC-G200
Sanyo DSC-X1/VPC-X300
Sharp VE-LC2 (IrTran-P)
Sony DSC-F3 (IrTran-P)
UMAX AstraCam (USB)
UMAX AstraCam 1000 (USB)

佳能 IXUS 162,170,180 等最新数码相机不支持 WIA 协议。如果您正在寻找旧的“拍照”WIA 1.x/2.x 命令的替代品:{AF933CAC-ACAD-11D2-A093-00C04F72DC3C},合适的方法是佳能 EOS 系列和佳能SDK 库。

杰瑞

于 2021-06-07T15:28:29.273 回答