/// <summary> /// 初始化视频画刷及显示控件 /// </summary> public void IniVideoRender() { drawDib = new DrawDib(this.controlVideo); drawDib.BITMAPINFOHEADER = BITMAPINFOHEADER; drawDib.BITMAPINFOHEADER.biCompression = (int)BI.BI_RGB; drawDib.BITMAPINFOHEADER.biBitCount = 24; drawDib.Open(); }
/// <summary> /// 初始化视频画刷及显示控件 /// </summary> public void IniVideoRender(BITMAPINFOHEADER BITMAPINFOHEADER) { drawDib = new DrawDib(this.controlVideo); drawDib.BITMAPINFOHEADER = BITMAPINFOHEADER; //drawDib.BITMAPINFOHEADER.biCompression = BITMAPINFOHEADER.biCompression;// 已修改 原(int)BI.BI_RGB; //drawDib.BITMAPINFOHEADER.biBitCount = BITMAPINFOHEADER.biBitCount;//已修改 原24 drawDib.Open(); }