/// <summary> /// Resizes the renderer. /// </summary> /// <param name="width">The new width.</param> /// <param name="height">The new height.</param> public void Resize(int width, int height) { WindowRenderTarget window = _renderTarget as WindowRenderTarget; if (window == null) { throw new InvalidOperationException(string.Format( "A renderer with a target of type '{0}' cannot be resized.", _renderTarget.GetType().Name)); } window.Resize(new Size2(width, height)); }