Ejemplo n.º 1
0
        public void Sync()
        {
            if (!HasChanges)
            {
                return;
            }
            HasChanges = false;

            if (RendererTexture == null)
            {
                RendererTexture = new RendererTexture(Bitmap, Label);
            }
            else
            {
                if (BitmapChanged)
                {
                    BitmapChanged = false;
                    RendererTexture.SetData(Bitmap);
                    if (AutoDisposeBitmap)
                    {
                        Log.Verbose("Disposing Bitmap for {ObjectLabel}", RendererTexture.ObjectLabel);
                        Bitmap.Dispose();
                        Bitmap = null;
                    }
                }
            }
        }
 public void Dispose()
 {
     _graphic.Dispose();
 }