getContentBounds

Return

Rect with minimum bounds in which all content of Bitmap might be fit. Assuming that transparent pixels are "empty", therefore not counting them as a content. Method performs in linear time (relatively to amount of pixels), so it's not recommended to invoke it from the main thread for large images.

Throws