WIA and resolution

  • Thread starter Thread starter Miso
  • Start date Start date
M

Miso

Hello,
can anybody tell
how to set default WIA (Windiws Image Acquisition)
resolution for video stream and for pictures taken from the webcam ?

I am using my own WIA application according to the Microsoft SDK and using
WIA automation :

http://www.microsoft.com/downloads/...7a-01b8-4de6-91c2-b7ea32537e29&DisplayLang=en

The IrfanView has the same resolution as my app, the same is for the
Microsoft Scanner and Camera Wizard,
when taking pictures from the webcam.

Thanks

miso
 
Set Img = CreateObject("WIA.ImageFile")
Set IP = CreateObject("WIA.ImageProcess")


Img.LoadFile filename
IP.Filters.Add IP.FilterInfos("Scale").FilterID
IP.Filters(1).Properties("MaximumWidth") = 1024
IP.Filters(1).Properties("MaximumHeight") = 768

Set Img = IP.Apply(Img)
Img.SaveFile Newfilename
 
Back
Top