开发者

Slice an image into segments, is there any android libraries to do this?

开发者 https://www.devze.com 2023-02-25 14:24 出处:网络
Does android have any built-in features to slice an image into portions? For example, if I have an image loaded in my application (such as setting on in an ImageView), is it possible to slice that ima

Does android have any built-in features to slice an image into portions? For example, if I have an image loaded in my application (such as setting on in an ImageView), is it possible to slice that image up into 4 equal se开发者_JAVA技巧gments and display each one separately?

If there is nothing out of the box, which libraries would enable me to do this?

Thanks


If you're working with bitmaps, you can use Bitmap.createBitmap to extract sub-images.

Hope this helps,

Phil Lello

0

精彩评论

暂无评论...
验证码 换一张
取 消