采用DirectShowLib-2005的DXsnap 例子拍摄出来的图像效果问题(高分)

boredom_vc 2012-04-06 12:57:19
最近在使用DirectShowLib-2005.dll开发摄像头的拍像程序,但我发现拍出的效果没有AMCAP的效果好。
请高手指导。
代码截取:
hr = m_FilterGraph.AddSourceFilterForMoniker(dev.Mon, null, dev.Name, out capFilter);
DsError.ThrowExceptionForHR( hr );

m_pinStill = DsFindPin.ByCategory(capFilter, PinCategory.Still, 0);

// Get a control pointer (used in Click())
m_VidControl = capFilter as IAMVideoControl;
pCaptureOut = DsFindPin.ByCategory(capFilter, PinCategory.Capture, 0);
// If any of the default config items are set
if (iHeight + iWidth + iBPP > 0)
{
SetConfigParms(m_pinStill, iWidth, iHeight, iBPP);
}

采用PinCategory.Still模式时,拍出来的图像有时黑,有时白
...全文
247 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
wy811007 2012-05-04
  • 打赏
  • 举报
回复
你最好把那个dll发出来 大家帮你测试下..
这样来的实际些..

不过是不是和你的摄像头也有关系呢?
HA_SNOWANG 2012-05-04
  • 打赏
  • 举报
回复
个库文件可以用在WINCE下吗

110,571

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧