Code example for Bitmap

Methods: getHeightgetWidth

0
 
        public Bitmap processImage(Bitmap bitmap) {
            Bitmap result = Bitmap.createBitmap(mThumbnailSize, mThumbnailSize, Bitmap.Config.ARGB_8888);
            Canvas c = new Canvas(result);
 
            mRectSrc.set(0, 0, bitmap.getWidth(), bitmap.getHeight());
            mRectDest.set(0, 0, mThumbnailSize, mThumbnailSize);
            c.drawBitmap(bitmap, mRectSrc, mRectDest, null);
            c.drawBitmap(mMask, 0, 0, mPaint);
 
            return result;
        } 
    } 
 
    public void onScroll(AbsListView arg0, int arg1, int arg2, int arg3) {
    } 
 
    public void onScrollStateChanged(AbsListView listView, int scrollState) {
        if (getListView() == listView) {
            searchAsyncImageViews(listView, scrollState == OnScrollListener.SCROLL_STATE_FLING);
        }