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 //{ //} } }
public abstract void DrawImage(Image actualImage, double left, double top, CpuBlit.VertexProcessing.ICoordTransformer coordTx);
public void ResetTransform() { _currentTx = null; }