Does a copied bitmap have the same options?

BitmapFactory.Options options = new BitmapFactory.Options(); 
            options.inPurgeable = true;
            Bitmap original = BitmapFactory.decodeResource(getResources(),
                    drawableid,options);
            Bitmap bm = original.copy(Bitmap.Config.RGB_565, true);
            original.recycle();

In the above code are the option settings copied over as well when you call bitmap.copy? That is Will bm have its inpurgeable set to true?

Answers


Yes, the BitmapFactory.Options control the way that a Bitmap is generated. Once created, it is created once and for all so copying it will make an exact copy of the way it was created.


Need Your Help

performance.timing.loadEventEnd set to 0 when using JSONP

javascript performance jsonp navigation-timing-api

I want to count the time taken for page load once the page is received from the server, so I use the remainder of loadEventEnd and responseEnd.

Haskell permutation function does not compile

debugging haskell types compiler-errors permutation

I'm brushing up on some Haskell and I am trying to write a permutation function that would map [1,2,3] -> [[1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1]]. I have the following -

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.