/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public void Dispose() { if (!disposed) { if (documentProfile != null) { documentProfile.Dispose(); documentProfile = null; } if (monitorProfile != null) { monitorProfile.Dispose(); monitorProfile = null; } if (transform != null) { transform.Dispose(); transform = null; } disposed = true; } }
/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public void Dispose() { if (!disposed) { if (documentProfile != null) { documentProfile.Dispose(); documentProfile = null; } if (monitorProfile != null) { monitorProfile.Dispose(); monitorProfile = null; } if (transform != null) { transform.Dispose(); transform = null; } if (interleavedCMYKSurface != null) { interleavedCMYKSurface.Dispose(); interleavedCMYKSurface = null; } if (interleavedRGBSurface != null) { interleavedRGBSurface.Dispose(); interleavedRGBSurface = null; } disposed = true; } }