android - 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 above code option settings copied on when call bitmap.copy? bm have inpurgeable set true?
yes, bitmapfactory.options
control way bitmap
generated. once created, created once , copying make exact copy of way created.
Comments
Post a Comment