ArthurHub / ArthurHub/Android-Image-Cropper

Call setRotatedDegrees right after setImageBitmap

Open
#217 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.4k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

Hi there,

As title, in my code, I want to rotate the Image right after set bitmap

`mImageTransparent.setImageBitmap(bitmap);`
`mImageTransparent.setRotatedDegrees(((MainActivity) getActivity()).getRotatedDegrees());`

with `mImageTransparent` is `CropImageView`

But the image is still in 0-degree position. It just rotates after I touch on crop frame.

I tried to rotate bitmap using `Matrix` before `setImageBitmap` but It will not rotate the following crop overlay frame.

Is there any ways to detect that setImageBitmap is completed before rotate the image?

Thanks in advance.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.