Method CreateWindow
- Namespace
- PaintDotNet
- Assembly
- PaintDotNet.Core.dll
CreateWindow(Rectangle)
Creates a Surface that aliases a portion of this Surface.
public Surface CreateWindow(Rectangle bounds)
Parameters
bounds
RectangleThe portion of this Surface that will be aliased.
Returns
- Surface
A Surface that aliases the requested portion of this Surface.
Remarks
The upper left corner of the new Surface will correspond to the upper left corner of this rectangle in the original Surface.
CreateWindow(RectInt32)
Creates a Surface that aliases a portion of this Surface.
public Surface CreateWindow(RectInt32 bounds)
Parameters
bounds
RectInt32The portion of this Surface that will be aliased.
Returns
- Surface
A Surface that aliases the requested portion of this Surface.
Remarks
The upper left corner of the new Surface will correspond to the upper left corner of this rectangle in the original Surface.
CreateWindow(int, int, int, int)
public Surface CreateWindow(int x, int y, int windowWidth, int windowHeight)