:: AForge.NET Framework :: Articles :: Forums ::

GetCurrentVideoFrame() return size is wrong

Forum to discuss AForge.NET Framework, its features, API, how-tos, etc.

GetCurrentVideoFrame() return size is wrong

Postby btb4198 » Thu Jan 03, 2019 8:31 pm

ok so I just learned that GetCurrentVideoFrame() return a fame that is double the size of my videoSourcePlayer.
so my videoSourcePlayer is size (1319, 941)
and when GetCurrentVideoFrame() return a bitmap it is size (2638,1882).

I need it to returned the same size as the videoSourcePlayer.
how do I do that ?
Posts: 34
Joined: Fri May 18, 2018 2:31 am

Re: GetCurrentVideoFrame() return size is wrong

Postby andrew.kirillov » Fri Jan 04, 2019 7:26 am

As mentioned on another topic, GetCurrentVideoFrame() does exactly what it is supposed to do - provides image from camera, not the one which is displayed. So you have two options - 1) resize image yourself or 2) modify video source player to provide image it is displaying.
With best regards,

Interested in supporting AForge.NET Framework?
User avatar
Site Admin, AForge.NET Developer
Posts: 3453
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Return to AForge.NET Framework