PhotoViewerTest.Droid.PhotoViewDroidAttacher.GetDrawMatrix C# (CSharp) 메소드

GetDrawMatrix() 공개 메소드

public GetDrawMatrix ( ) : Matrix
리턴 Matrix
        public Matrix GetDrawMatrix()
        {
            mDrawMatrix.Set(mBaseMatrix);
            mDrawMatrix.PostConcat(mSuppMatrix);
            return mDrawMatrix;
        }

Usage Example

            public void Run()
            {
                if (mScroller.IsFinished())
                {
                    return;                     // remaining post that should not be handled
                }
                ImageView imageView = photoViewAttacher.GetImageView();

                if (null != imageView && mScroller.ComputeScrollOffset())
                {
                    int newX = mScroller.GetCurrX();
                    int newY = mScroller.GetCurrY();
                    if (photoViewAttacher.DEBUG)
                    {
                        LogManager.GetLogger().d(
                            LOG_TAG,
                            "fling run(). CurrentX:" + mCurrentX + " CurrentY:"
                            + mCurrentY + " NewX:" + newX + " NewY:"
                            + newY);
                    }
                    photoViewAttacher.mSuppMatrix.PostTranslate(mCurrentX - newX, mCurrentY - newY);
                    photoViewAttacher.SetImageViewMatrix(photoViewAttacher.GetDrawMatrix());
                    mCurrentX = newX;
                    mCurrentY = newY;
                    Compat.PostOnAnimation(imageView, this);
                }
            }
All Usage Examples Of PhotoViewerTest.Droid.PhotoViewDroidAttacher::GetDrawMatrix