-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
How can i scale the gif? #158
Comments
You can use something like this: Bitmap currentFrame = gifDrawable.getCurrentFrame();
Bitmap scaledFrame = Bitmap.createScaledBitmap(currentFrame, 800, 600, true); |
That used more memory. There are ways to save memory? |
In In |
Whether it will provide |
I have no plan to do such feature myself, but pull requests are welcome. |
Hey @koral-- |
Hey @koral-- I made a new class which extends your GifDrawable
It looks like this. I am unable to fulfil my needs actually. My code can only resize the image. |
e.g. :
the gif image size: 1280 * 720,
how can i get a Bitmap with size (800 * 600)?
Just like this:
GifInfoHandle : {
width = 1280;
height = 720;
}
Bitmap buffer = Bitmap.createBitmap(800, 600, Bitmap.Config.ARGB_8888);
GifInfoHandle.renderFrame(buffer);
The text was updated successfully, but these errors were encountered: