android - Large bitmap not being drawn -
i'm in works of game , i'm loading large image 5120 wide , 116 high. when try draw screen using
canvas.drawbitmap(land, 0, 0, paint);
nothing gets drawn. when use smaller file (512x116) same method call, gets drawn. there image size limit? image 750 kb. max canvas width , height 8192. in advance!
edit:
i noticed in log: bitmap large uploaded texture (20480x464, max=8192x8192)
as if bitmap 4 times larger actual size. why be?
edit 2: found issue. bitmapfactory returning larger file because multiplies dimensions screen density. file ends being large.
i haven't used canvas layout try using largeheap = "true" in manifest
Comments
Post a Comment