C#调用DirectShow,在预览中加入回调函数:int ISampleGrabberCB.BufferCB( double SampleTime, IntPtr pBuffer, int BufferLen ){
      IntPtr ipSource = m_bmdLogo.Scan0;
      IntPtr ipDest = pBuffer;      for (int x = 0; x < m_bmdLogo.Height; x++)
      {
           CopyMemory(ipDest, ipSource, m_bmdLogo.Stride);
           ipDest = (IntPtr)(ipDest.ToInt32() + m_stride);
           ipSource = (IntPtr)(ipSource.ToInt32() + m_bmdLogo.Stride);
      }}以上回调函数,在预览中插入了一个logo,已经成功预览。要求把这段实现改称将预览旋转90度。