Lines Matching refs:BitmapFactory
44 <p>The {@link android.graphics.BitmapFactory} class provides several decoding methods ({@link
45 android.graphics.BitmapFactory#decodeByteArray(byte[],int,int,android.graphics.BitmapFactory.Option…
47 android.graphics.BitmapFactory#decodeFile(java.lang.String,android.graphics.BitmapFactory.Options)
49 android.graphics.BitmapFactory#decodeResource(android.content.res.Resources,int,android.graphics.Bi…
54 options via the {@link android.graphics.BitmapFactory.Options} class. Setting the {@link
55 android.graphics.BitmapFactory.Options#inJustDecodeBounds} property to {@code true} while decoding
57 android.graphics.BitmapFactory.Options#outWidth}, {@link
58 android.graphics.BitmapFactory.Options#outHeight} and {@link
59 android.graphics.BitmapFactory.Options#outMimeType}. This technique allows you to read the
64 BitmapFactory.Options options = new BitmapFactory.Options();
66 BitmapFactory.decodeResource(getResources(), R.id.myimage, options);
95 android.graphics.BitmapFactory.Options#inSampleSize} to {@code true} in your {@link
96 android.graphics.BitmapFactory.Options} object. For example, an image with resolution 2048x1536 that
97 is decoded with an {@link android.graphics.BitmapFactory.Options#inSampleSize} of 4 produces a
105 BitmapFactory.Options options, int reqWidth, int reqHeight) {
130 android.graphics.BitmapFactory.Options#inSampleSize} documentation.</p>
133 android.graphics.BitmapFactory.Options#inJustDecodeBounds} set to {@code true}, pass the options
135 android.graphics.BitmapFactory.Options#inSampleSize} value and {@link
136 android.graphics.BitmapFactory.Options#inJustDecodeBounds} set to {@code false}:</p>
144 final BitmapFactory.Options options = new BitmapFactory.Options();
146 BitmapFactory.decodeResource(res, resId, options);
153 return BitmapFactory.decodeResource(res, resId, options);
168 android.graphics.BitmapFactory#decodeByteArray(byte[],int,int,android.graphics.BitmapFactory.Option…
169 BitmapFactory.decode*} method as needed.</p>