Hi Friends,
I'm trying to set the Width and Height to capture images, but my code:
"iev_preview.IO.DShowParams.SetCurrentVideoFormat(720, 480, '')"
is being ignored and only 320x240 is being captured.
I'm also tried:
ImageEnView1.IO.DShowParams.SetVideoInput(ComboBox1.ItemIndex, 0, 720, 240,'YUY2');
But this is ignored as well.
I'm also downloaded the last demo from this site, and I realized that even in your exemple, the size is ignored ! (image attached, see red arrow). But when I use "Format Dialog" button, the size desired is achieved. I need to set it via directShow because in the other way, I need to re-assign the format every time the computer starts....
What to do ?
Windows XP
ImageEN 4.1
PixelView GT8000 capture card
Regars
Fábio Marcos
COMLETE CODE:
iev_preview.IO.DShowParams.SetVideoInput(0);
iev_preview.IO.DShowParams.EnableSampleGrabber := True;
// trying set video size... but this is being ignored
w := 720;
h := 480;
iev_preview.IO.DShowParams.SetCurrentVideoFormat(w, h, '');
iev_preview.IO.DShowParams.SetTVStandard(ievsNTSC_M);
iev_preview.IO.DShowParams.VideoInputSource := 0;
iev_preview.IO.DShowParams.Connect;
iev_preview.IO.DShowParams.Run;
