| | |
| | | paint.setAntiAlias(true);
|
| | | canvas.drawARGB(0, 0, 0, 0);
|
| | | paint.setColor(color);
|
| | | // canvas.drawRoundRect(rectF, roundPx, roundPx, paint);
|
| | | canvas.drawCircle(bitmap.getWidth() / 2, bitmap.getHeight() / 2,
|
| | | bitmap.getWidth() / 2, paint);
|
| | | paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));
|
| | | canvas.drawBitmap(bitmap, rect, rect, paint);
|
| | | //Bitmap _bmp = Bitmap.createScaledBitmap(output, 60, 60, false);
|
| | | //return _bmp;
|
| | | return output;
|
| | | }
|
| | |
|
| | | public void setPhoto(Bitmap photo) {
|
| | |
|
| | | fragment_check_in_right_visitor_cell_photo.setImageBitmap(getCroppedBitmap(photo));
|
| | | fragment_check_in_right_visitor_cell_photo_placeholder.setVisibility(INVISIBLE);
|
| | | }
|
| | |
|
| | | public CheckInQueryItem getVisitor() {
|