ImageView getImageMatrix - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for ImageView getImageMatrix method.

This code example shows how to use the following methods:getHeight, getWidth, getImageMatrix
		} 
		 
	} 
	 
	private void invertImage(ImageView v) {
		Matrix m = v.getImageMatrix();
		m.setRotate(180, v.getWidth() / 2, v.getHeight() / 2);
	} 
 
	public void onAnimationRepeat(Animation animation) {
		 
	} 
 
	public void onAnimationStart(Animation animation) {
		 
	} 
	 
	TranslateAnimation makeMove(View view) {
 
		return new TranslateAnimation(Animation.ABSOLUTE, view.getLeft(),
7
CodeRank
This code example shows how to use the following methods:getLeft, getTop, getImageMatrix
 
        // draw any blended overlays 
        if (mHolographicOutline != null && mHolographicAlpha > 0) {
            // Calculate how much to scale the holographic preview 
            mTmpScaleRect.set(0,0,1,1);
            mPreviewImageView.getImageMatrix().mapRect(mTmpScaleRect);
 
            mPaint.setAlpha(mHolographicAlpha);
            canvas.save();
            canvas.scale(mTmpScaleRect.right, mTmpScaleRect.bottom);
            canvas.drawBitmap(mHolographicOutline, mPreviewImageView.getLeft(),
                    mPreviewImageView.getTop(), mPaint);
            canvas.restore();
        } 
    } 
 
    @Override 
    protected boolean onSetAlpha(int alpha) {
        return true; 
    } 
5
CodeRank

Related ImageView getImageMatrix Questions & Answers:

getImageMatrix Method Overview
Return the view's optional matrix.
See Code Examples for other Android ImageView Methods: