public void Dispose() { if (EnableImageStoring && DXMenager.EnableRestoring) { ClearCurrentStorage(); } m_d3dInterop.SpriteDelete(id); DXMenager.sprites.Remove(this); DXMenager = null; }
internal Sprite(DirectXMenager manager) { DXMenager = manager; id = m_d3dInterop.SpriteCreate(); Blendmode = BlendMode.Normal; //Tigran FillMode = FillMode.None; // InitializeComponent(); gr.ManipulationDelta += Sprite_ManipulationDelta; gr.ManipulationStarted += (s, e) => { isnewmanipul = true; }; SizeChanged += (s, e) => { Dispatcher.BeginInvoke(SetTransform); }; //LayoutUpdated += (s, e) => {SetTransform(); }; }