IImageFilterContext.AcquireScratch method
Rents a scratch render surface sized at least (pixelWidth, pixelHeight) from the pool. The returned ScratchFilterResult automatically releases the surface on Dispose. Callers must render INTO the scratch before returning it as the node’s output.
public ScratchFilterResult AcquireScratch(int pixelWidth, int pixelHeight, Rect bounds)| parameter | description |
|---|---|
| pixelWidth | Minimum required pixel width. |
| pixelHeight | Minimum required pixel height. |
| bounds | Bounds in source coordinates this scratch represents. |
See Also
Section titled “See Also”- class ScratchFilterResult
- struct Rect
- interface IImageFilterContext
- namespace Aprillz.MewUI.Rendering.Filters