public static void ReleaseIndependentResource() { Utilities.Dispose(ref imageFactory); Utilities.Dispose(ref writeFactory); Utilities.Dispose(ref d2d1factory); Ready = false; }