CodeTV.GraphBuilderBase.StartOSD C# (CSharp) Метод

StartOSD() публичный Метод

public StartOSD ( ) : void
Результат void
        public void StartOSD()
        {
            //// Get the colorkeyed bitmap without antialiasing
            //colorKeyBitmap = BitmapGenerator.GenerateColorKeyBitmap(colorKey, false);
            ////// Get the bitmap with alpha transparency
            ////alphaBitmap = BitmapGenerator.GenerateAlphaBitmap();

            //IVMRMixerBitmap9 mixerBitmap = this.videoRenderer as IVMRMixerBitmap9;

            ////if (usingGDI)
            ////{
            //    // Old school GDI stuff...
            //    Graphics g = Graphics.FromImage(colorKeyBitmap);
            //    IntPtr hdc = g.GetHdc();
            //    IntPtr memDC = NativeMethodes.CreateCompatibleDC(hdc);
            //    IntPtr hBitmap = colorKeyBitmap.GetHbitmap();
            //    NativeMethodes.SelectObject(memDC, hBitmap);

            //    // Set Alpha Bitmap Parameters for using a GDI DC
            //    VMR9AlphaBitmap alphaBmp = new VMR9AlphaBitmap();
            //    alphaBmp.dwFlags = VMR9AlphaBitmapFlags.hDC | VMR9AlphaBitmapFlags.SrcColorKey | VMR9AlphaBitmapFlags.FilterMode;
            //    alphaBmp.hdc = memDC;
            //    alphaBmp.rSrc = new DsRect(0, 0, colorKeyBitmap.Size.Width, colorKeyBitmap.Size.Height);
            //    alphaBmp.rDest = GetDestRectangle();
            //    alphaBmp.clrSrcKey = ColorTranslator.ToWin32(colorKey);
            //    alphaBmp.dwFilterMode = VMRMixerPrefs.PointFiltering;
            //    alphaBmp.fAlpha = 0.75f;

            //    // Set Alpha Bitmap Parameters
            //    int hr = mixerBitmap.SetAlphaBitmap(ref alphaBmp);
            //    DsError.ThrowExceptionForHR(hr);

            //    // Release GDI handles
            //    NativeMethodes.DeleteObject(hBitmap);
            //    NativeMethodes.DeleteDC(memDC);
            //    g.ReleaseHdc(hdc);
            //    g.Dispose();
            ////}
            ////else // Using a Direct3D surface
            ////{
            ////    // Set Alpha Bitmap Parameters for using a Direct3D surface
            ////    VMR9AlphaBitmap alphaBmp = new VMR9AlphaBitmap();
            ////    alphaBmp.dwFlags = VMR9AlphaBitmapFlags.EntireDDS;
            ////    alphaBmp.pDDS = unmanagedSurface;
            ////    alphaBmp.rDest = GetDestRectangle();
            ////    alphaBmp.fAlpha = 1.0f;
            ////    // Note : Alpha values from the bitmap are cumulative with the fAlpha parameter.
            ////    // Example : texel alpha = 128 (50%) & fAlpha = 0.5f (50%) = effective alpha : 64 (25%)

            ////    // Set Alpha Bitmap Parameters
            ////    int hr = mixerBitmap.SetAlphaBitmap(ref alphaBmp);
            ////    DsError.ThrowExceptionForHR(hr);
            ////}
        }