void OnReceiveJPEG() { if (!ImageConversion.LoadImage(texture, m_Message.ToArray(), false)) { if (debug) { Debug.LogError("Failed to load JPEG from message"); } } if (null != TextureChanged) { TextureChanged.Invoke(); } }
/// <summary> /// Raises TextureChanged event notifying Noesis that it should reload the specified texture. /// </summary> public void RaiseTextureChanged(Uri uri) { TextureChanged?.Invoke(uri); Noesis_RaiseTextureChanged(swigCPtr, uri.OriginalString); }
/// <summary> /// Implementation of the <see cref="IDisposable"/> interface. /// </summary> public void Dispose() { TextureChanged?.Invoke(this, new TextureEventArgs(this, TextureChangedEnum.Disposed)); }
/// <summary> /// Raises TextureChanged event notifying Noesis that it should reload the specified texture /// </summary> public void RaiseTextureChanged(string uri) { TextureChanged?.Invoke(uri); Noesis_RaiseTextureChanged(swigCPtr, uri); }