libgdx - Loading subsampled GDX pixmap like when using Android's inSampleSize -


i'm wondering if there's way load subsampled pixmap in libgdx, similar specifying insamplesize when loading bitmap in android. aim allocate amount of heap memory absolutely necessary.

good stuff. cheers, aert

not real answer, couldn't find answer myself when ran problem.

you can create interface , implement on android (and other projects). implement androidtexture bitmap (and use insamplesize). of course, won't compatible libgdx textures (i couldn't find way extend correctly libgdx textures). won't hurt if don't use libgdx's sprites or so, if do, don't take approach. used load images camera, didn't have other choice , needed bind texture shaders.

it possible save sampled images folder , let app load them absolute path (also should done android-side).

note in first case won't managed texture, you'll need handle realoading yourself.


Comments