public void Rebind( XnaHardwarePixelBuffer buffer ) { pixelBuffer = buffer; Width = pixelBuffer.Width; Height = pixelBuffer.Height; ColorDepth = PixelUtil.GetNumElemBits( buffer.Format ); }