Example #1
0
        public void ApplyTransform(CpuBlit.VertexProcessing.Affine tx)
        {
            //apply transform to all part
            if (_currentTx == null)
            {
                _currentTx = tx;
            }
            else
            {
                //ORDER is IMPORTANT
                _currentTx = _currentTx.MultiplyWith(tx);
                //if (_currentTx is CpuBlit.VertexProcessing.Affine)
                //{
                //    _currentTx = ((CpuBlit.VertexProcessing.Affine)_currentTx) * tx;
                //}
                //else if (_currentTx is CpuBlit.VertexProcessing.Perspective)
                //{
                //    _currentTx = ((CpuBlit.VertexProcessing.Perspective)_currentTx) * tx;
                //}
                //else
                //{

                //}
            }
        }
Example #2
0
 public abstract void DrawImage(Image actualImage, double left, double top, CpuBlit.VertexProcessing.ICoordTransformer coordTx);
Example #3
0
 public void ResetTransform()
 {
     _currentTx = null;
 }