BindRectangleToSurface() public method

public BindRectangleToSurface ( VideoBuffer frame, int width, int height ) : void
frame VideoBuffer
width int
height int
return void
示例#1
0
 public override void Render(VideoBuffer frame)
 {
     RunOnUIThread(() =>
     {
         //if (DrawingSurface.Width != frame.Width || DrawingSurface.Height != frame.Height)
         //{
         //    DrawingSurface.Width = frame.Width;
         //    DrawingSurface.Height = frame.Height;
         //}
         SharpDXRenderProvider.BindRectangleToSurface(frame, (int)DrawingSurface.Width, (int)DrawingSurface.Height);
         SharpDXRenderProvider.Render(frame);
     });
 }