I
I
IA-NE-ROBOT2018-12-12 09:45:01
Android
IA-NE-ROBOT, 2018-12-12 09:45:01

Android - how to work with a large drawing?

Hello, I am loading an image with an edge of more than 4096 into an ImageView. In the studio, it gives an error that it is impossible to work with a bitmap greater than 4096x4096. At the same time, GL_MAX_TEXTURE_SIZE of the test device contains the value 3379. Is
3379 the maximum texture size of 3379x3379? Why then does the studio write about 4096?
Even if the maximum is 4096 - how to get around it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
korvin2, 2018-12-13
@korvin2

Try moving the image to drawable-nodpi

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question