コード例 #1
0
 public void Dispose()
 {
     if (EnableImageStoring && DXMenager.EnableRestoring)
     {
         ClearCurrentStorage();
     }
     m_d3dInterop.SpriteDelete(id);
     DXMenager.sprites.Remove(this);
     DXMenager = null;
 }
コード例 #2
0
        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(); };
        }