Class PdnRegion
- Namespace
- PaintDotNet
- Assembly
- PaintDotNet.Core.dll
Designed as a proxy to the GDI+ Region class, while allowing for a replacement that won't break code. The main reason for having this right now is to work around some bugs in System.Drawing.Region, especially the memory leak in GetRegionScans().
public sealed class PdnRegion : IIsDisposed, IDisposable
- Inheritance
-
PdnRegion
- Implements
- Inherited Members
Constructors
Properties
Methods
- GetRegionScansReadOnly()
This is an optimized version of GetRegionScans that returns a reference to the array that is used to cache the region scans. This mitigates performance when this array is requested many times on an unmodified PdnRegion. Thus, by using this method you are promising to not modify the array that is returned.