图片太大,canvas画不出来

loacat提示:
07-03 01:06:58.175: W/OpenGLRenderer(30011): Bitmap too large to be uploaded into a texture (440x5261, max=4096x4096)
07-03 01:06:58.175: W/OpenGLRenderer(30011): Bitmap too large to be uploaded into a texture (440x5261, max=4096x4096)
07-03 01:06:58.175: W/OpenGLRenderer(30011): Bitmap too large to be uploaded into a texture (440x4097, max=4096x4096)

原因:用了OpenGL,textture有大小限制,我的手机是4096*4096

解决办法:禁用此view的硬件加速。

你可能感兴趣的:(canvas)