Get Centerpoint Of Bitmap On An Imageview
I draw an Bitmap on an ImageView (and some other stuff). I don't know if this problem is too trivial, but I did nothing found solving my problem,yet. So: I need to get the Centerp
Solution 1:
Try the following,
int width=Bitmap.getWidth();
int height=Bitmap.getHeight();
int centerX=width/2;
int centerY=height/2;
then centerX and centerY will be the center of the bitmap.
Post a Comment for "Get Centerpoint Of Bitmap On An Imageview"