Lines Matching refs:Bitmap

23 import android.graphics.Bitmap;
62 Bitmap mBitmap;
216 * (usually a {@link android.graphics.Bitmap}); copying to or from the
217 * original source Bitmap will cause a synchronization rather than a full
219 * and the source Bitmap.
378 private void setBitmap(Bitmap b) {
632 private void validateBitmapFormat(Bitmap b) {
633 Bitmap.Config bc = b.getConfig();
635 throw new RSIllegalArgumentException("Bitmap has an unsupported format for this operation");
681 private void validateBitmapSize(Bitmap b) {
977 * Copy into an Allocation from a {@link android.graphics.Bitmap}. The
981 * <p>If the {@link android.graphics.Bitmap} is the same as the {@link
982 * android.graphics.Bitmap} used to create the Allocation with {@link
985 * android.graphics.Bitmap}, potentially avoiding the actual copy.</p>
989 public void copyFrom(Bitmap b) {
994 Bitmap newBitmap = Bitmap.createBitmap(b.getWidth(), b.getHeight(), Bitmap.Config.ARGB_8888);
1695 * Copy a {@link android.graphics.Bitmap} into an Allocation. The height
1697 * android.graphics.Bitmap}.
1701 * @param data the Bitmap to be copied
1703 public void copy2DRangeFrom(int xoff, int yoff, Bitmap data) {
1708 Bitmap newBitmap = Bitmap.createBitmap(data.getWidth(), data.getHeight(), Bitmap.Config.ARGB_8888);
1840 * Copy from the Allocation into a {@link android.graphics.Bitmap}. The
1845 public void copyTo(Bitmap b) {
2753 static Element elementFromBitmap(RenderScript rs, Bitmap b) {
2754 final Bitmap.Config bc = b.getConfig();
2755 if (bc == Bitmap.Config.ALPHA_8) {
2758 if (bc == Bitmap.Config.ARGB_4444) {
2761 if (bc == Bitmap.Config.ARGB_8888) {
2764 if (bc == Bitmap.Config.RGB_565) {
2770 static Type typeFromBitmap(RenderScript rs, Bitmap b,
2781 * Creates an Allocation from a {@link android.graphics.Bitmap}.
2784 * @param b Bitmap source for the allocation data
2793 static public Allocation createFromBitmap(RenderScript rs, Bitmap b,
2803 throw new RSIllegalArgumentException("USAGE_SHARED cannot be used with a Bitmap that has a null config.");
2805 Bitmap newBitmap = Bitmap.createBitmap(b.getWidth(), b.getHeight(), Bitmap.Config.ARGB_8888);
2822 // keep a reference to the Bitmap around to prevent GC
3047 * Creates an Allocation from a {@link android.graphics.Bitmap}.
3060 static public Allocation createFromBitmap(RenderScript rs, Bitmap b) {
3070 * Creates a cubemap Allocation from a {@link android.graphics.Bitmap}
3076 * @param b Bitmap with cubemap faces layed out in the following
3084 static public Allocation createCubemapFromBitmap(RenderScript rs, Bitmap b,
3120 * from a {@link android.graphics.Bitmap} containing the horizontal list of
3132 Bitmap b) {
3138 * Creates a cubemap Allocation from 6 {@link android.graphics.Bitmap}
3156 Bitmap xpos,
3157 Bitmap xneg,
3158 Bitmap ypos,
3159 Bitmap yneg,
3160 Bitmap zpos,
3161 Bitmap zneg,
3206 * from 6 {@link android.graphics.Bitmap} objects containing the cube
3222 Bitmap xpos,
3223 Bitmap xneg,
3224 Bitmap ypos,
3225 Bitmap yneg,
3226 Bitmap zpos,
3227 Bitmap zneg) {
3234 * Creates an Allocation from the Bitmap referenced
3258 Bitmap b = BitmapFactory.decodeResource(res, id);
3266 * {@link android.graphics.Bitmap} referenced by resource ID.