Esempio n. 1
0
 internal static Image Create(NativeHandles.ImageHandle handle)
 => handle != null && !handle.IsInvalid ? new Image(handle) : null;
Esempio n. 2
0
        private readonly NativeHandles.HandleWrapper <NativeHandles.ImageHandle> handle;     // This class is an wrapper around this handle

        private Image(NativeHandles.ImageHandle handle)
        {
            this.handle           = handle;
            this.handle.Disposed += Handle_Disposed;
        }