Code example for Bitmap

Methods: getHeightgetWidth

0
            super(c);
 
            mBitmap1 = Bitmap.createBitmap(PATTERN_SIZE, PATTERN_SIZE, Bitmap.Config.ARGB_8888);
            mBitmapPaint = new Paint();
 
            mPixels = new int[mBitmap1.getWidth() * mBitmap1.getHeight()];
            mSlice = mBitmap1.getWidth() / 3;
        } 
 
        public void setOffset(int offset) {
            mOffset = offset;
            invalidate();
        } 
 
        @Override 
        protected void onDraw(Canvas canvas) {
            super.onDraw(canvas);
 
            int width = mBitmap1.getWidth();
            int height = mBitmap1.getHeight();
Experience pair programming with AI  Get Codota for Java