Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bitmap = ((BitmapDrawable) binding.imgResult.getDrawable()).getBitmap(); does not work #578

Open
RafiAhsanal opened this issue Aug 27, 2023 · 1 comment

Comments

@RafiAhsanal
Copy link

Please provide as much of the following information as possible. Please do not raise issues to ask for help developing your app.

Expected behaviour

Actual behaviour

Steps to reproduce

(Include your setup code, and where relevant, your layout XML)

Affected devices

(Specific devices, screen densities, SDK versions)

Affected images

(Attach images you have problems with)

@RafiAhsanal RafiAhsanal changed the title how to get Bitmap bitmap = ((BitmapDrawable) binding.imgResult.getDrawable()).getBitmap(); bitmap = ((BitmapDrawable) binding.imgResult.getDrawable()).getBitmap(); does not work Sep 4, 2023
@panpf
Copy link

panpf commented Oct 8, 2023

If you're looking for a zoom image component on Android, take a look at my ZoomImage (https://github.com/panpf/zoomimage) library. It can be used for View and Compose, supports scaling, panning, positioning, rotation, and super-large image subsampling. It also integrates image loaders such as sketch, glide, picasso, coil, etc.

如果你正在寻找 Android 上的变焦图像组件,可以看看我的 ZoomImage (https://github.com/panpf/zoomimage) 库。它可用于 View 和 Compose,支持缩放、平移、定位、旋转、超大图子采样,它还集成了 sketch、glide、picasso、coil 等图像加载器

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants