Pre-scaling Bitmaps

Pre-scaling Bitmaps

Pre-scaling Bitmaps - Hallo sahabat Teknologi Terbaru, Pada Artikel yang anda baca kali ini dengan judul Pre-scaling Bitmaps, kami telah mempersiapkan artikel ini dengan baik untuk anda baca dan ambil informasi didalamnya. mudah-mudahan isi postingan yang kami tulis ini dapat anda pahami. baiklah, selamat membaca.

Judul : Pre-scaling Bitmaps
link : Pre-scaling Bitmaps

Baca juga


Pre-scaling Bitmaps

For media rich applications, BITMAPS are everywhere. But these high-resolution images can cause a horde of performance problems if the size of the image in memory is larger than the size you’re displaying it on screen. As such one of the most important things you can do to alleviate memory pressure in your app, is resizing your bitmaps.

Rather than writing all your own image resizing code, Android has a set of APIs which can do all this work for you. But the trick is, knowing which one to use?

For example, inSampleSize is the fastest way to down-scale your image; But you can only make it smaller by some factor of your image. createScaledBitmap is a great API, but requires an extra memory allocation to get it done.

Thankfully, Colt McAnlis covers all these topics (and more) in this video, helping you reduce your memory footprint, and get some smaller images.



Demikianlah Artikel Pre-scaling Bitmaps

Sekianlah artikel Pre-scaling Bitmaps kali ini, mudah-mudahan bisa memberi manfaat untuk anda semua. baiklah, sampai jumpa di postingan artikel lainnya.


0 Response to "Pre-scaling Bitmaps"

Post a Comment