Lines Matching refs:Bitmap

23 import android.graphics.Bitmap;
60 Bitmap mBitmap;
185 * (usually a {@link android.graphics.Bitmap}); copying to or from the
186 * original source Bitmap will cause a synchronization rather than a full
188 * and the source Bitmap.
346 private void setBitmap(Bitmap b) {
618 private void validateBitmapFormat(Bitmap b) {
619 Bitmap.Config bc = b.getConfig();
621 throw new RSIllegalArgumentException("Bitmap has an unsupported format for this operation");
667 private void validateBitmapSize(Bitmap b) {
947 * Copy into an Allocation from a {@link android.graphics.Bitmap}. The
951 * <p>If the {@link android.graphics.Bitmap} is the same as the {@link
952 * android.graphics.Bitmap} used to create the Allocation with {@link
955 * android.graphics.Bitmap}, potentially avoiding the actual copy.</p>
959 public void copyFrom(Bitmap b) {
962 Bitmap newBitmap = Bitmap.createBitmap(b.getWidth(), b.getHeight(), Bitmap.Config.ARGB_8888);
1655 * Copy a {@link android.graphics.Bitmap} into an Allocation. The height
1657 * android.graphics.Bitmap}.
1661 * @param data the Bitmap to be copied
1663 public void copy2DRangeFrom(int xoff, int yoff, Bitmap data) {
1666 Bitmap newBitmap = Bitmap.createBitmap(data.getWidth(), data.getHeight(), Bitmap.Config.ARGB_8888);
1785 * Copy from the Allocation into a {@link android.graphics.Bitmap}. The
1790 public void copyTo(Bitmap b) {
2640 static Element elementFromBitmap(RenderScript rs, Bitmap b) {
2641 final Bitmap.Config bc = b.getConfig();
2642 if (bc == Bitmap.Config.ALPHA_8) {
2645 if (bc == Bitmap.Config.ARGB_4444) {
2648 if (bc == Bitmap.Config.ARGB_8888) {
2651 if (bc == Bitmap.Config.RGB_565) {
2657 static Type typeFromBitmap(RenderScript rs, Bitmap b,
2668 * Creates an Allocation from a {@link android.graphics.Bitmap}.
2671 * @param b Bitmap source for the allocation data
2680 static public Allocation createFromBitmap(RenderScript rs, Bitmap b,
2688 throw new RSIllegalArgumentException("USAGE_SHARED cannot be used with a Bitmap that has a null config.");
2690 Bitmap newBitmap = Bitmap.createBitmap(b.getWidth(), b.getHeight(), Bitmap.Config.ARGB_8888);
2707 // keep a reference to the Bitmap around to prevent GC
2737 * Creates an Allocation from a {@link android.graphics.Bitmap}.
2748 static public Allocation createFromBitmap(RenderScript rs, Bitmap b) {
2754 * Creates a cubemap Allocation from a {@link android.graphics.Bitmap}
2760 * @param b Bitmap with cubemap faces layed out in the following
2768 static public Allocation createCubemapFromBitmap(RenderScript rs, Bitmap b,
2804 * from a {@link android.graphics.Bitmap} containing the horizontal list of
2816 Bitmap b) {
2822 * Creates a cubemap Allocation from 6 {@link android.graphics.Bitmap}
2840 Bitmap xpos,
2841 Bitmap xneg,
2842 Bitmap ypos,
2843 Bitmap yneg,
2844 Bitmap zpos,
2845 Bitmap zneg,
2893 * from 6 {@link android.graphics.Bitmap} objects containing the cube
2909 Bitmap xpos,
2910 Bitmap xneg,
2911 Bitmap ypos,
2912 Bitmap yneg,
2913 Bitmap zpos,
2914 Bitmap zneg) {
2921 * Creates an Allocation from the Bitmap referenced
2945 Bitmap b = BitmapFactory.decodeResource(res, id);
2953 * {@link android.graphics.Bitmap} referenced by resource ID.