参考网上的jmf程序,能够捕捉摄像头的图像,但是默认的是320*240大小的,请问怎么设置这个大小?
程序如下:String str2 = "vfw:Microsoft WDM Image Capture (Win32):0";
di = CaptureDeviceManager.getDevice(str2);
ml = di.getLocator();
try{
 player = Manager.createRealizedPlayer(ml);
 player.start();
 ...
 ...

解决方案 »

  1.   

    在video.properties的文件里设置
    device-name=vfw:Microsoft WDM Image Capture (Win32):0
    resolution-x=320
    resolution-y=240
    colour-depth=24如果你想设置分辨率为160*120,可以改成这样:
    device-name=vfw:Microsoft WDM Image Capture (Win32):0
    resolution-x=160
    resolution-y=120
    colour-depth=24第一二个属性为分辨率,第三个属性为色深.good luck!引用地址:http://community.csdn.net/Expert/topic/4547/4547969.xml?temp=.741131