/development/samples/devbytes/animation/PictureViewer/src/com/example/android/pictureviewer/ |
PictureViewer.java | 20 import android.graphics.Bitmap; 64 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), local 66 drawables[i] = new BitmapDrawable(getResources(), bitmap);
|
/development/samples/devbytes/graphics/BitmapScaling/src/com/example/android/bitmapscaling/ |
BitmapScaling.java | 20 import android.graphics.Bitmap; 29 * bitmap. Sub-sampling can speed up load times and reduce the need for large bitmaps 30 * in memory if your target bitmap size is much smaller, although it's good to understand 31 * that you can't get specific Bitmap sizes, but rather power-of-two reductions in sizes. 46 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), local 48 originalImageView.setImageBitmap(bitmap); 51 addScaledImageView(bitmap, i, container); 55 private void addScaledImageView(Bitmap original, int sampleSize, LinearLayout container) { 58 // load time by simply reading less pixels for every pixel value in the final bitmap [all...] |
/external/freetype/src/raster/ |
ftrend1.c | 98 /* convert a slot's glyph image into a bitmap */ 109 FT_Bitmap* bitmap; local 180 bitmap = &slot->bitmap; 183 /* release old bitmap buffer */ 186 FT_FREE( bitmap->buffer ); 191 bitmap->pixel_mode = FT_PIXEL_MODE_MONO; 193 bitmap->width = width; 194 bitmap->rows = height; 195 bitmap->pitch = (int)pitch [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
BitmapDrawableResource.java | 1 package com.bumptech.glide.load.resource.bitmap; 14 * is also responsible for returning the underlying {@link android.graphics.Bitmap} to the given
|
BitmapTransformation.java | 1 package com.bumptech.glide.load.resource.bitmap; 4 import android.graphics.Bitmap; 12 * A simple {@link com.bumptech.glide.load.Transformation} for transforming {@link android.graphics.Bitmap}s that 20 * public Bitmap transform(BitmapPool pool, Bitmap toTransform, int outWidth, int outHeight) { 25 * return Bitmap.createScaledBitmap(toTransform, outWidth, outHeight, true); 31 public abstract class BitmapTransformation implements Transformation<Bitmap> { 44 public final Resource<Bitmap> transform(Resource<Bitmap> resource, int outWidth, int outHeight) { 49 Bitmap toTransform = resource.get() [all...] |
CenterCrop.java | 1 package com.bumptech.glide.load.resource.bitmap; 4 import android.graphics.Bitmap; 24 // Bitmap doesn't implement equals, so == and .equals are equivalent here. 27 protected Bitmap transform(BitmapPool pool, Bitmap toTransform, int outWidth, int outHeight) { 28 final Bitmap toReuse = pool.get(outWidth, outHeight, toTransform.getConfig() != null 29 ? toTransform.getConfig() : Bitmap.Config.ARGB_8888); 30 Bitmap transformed = TransformationUtils.centerCrop(toReuse, toTransform, outWidth, outHeight); 39 return "CenterCrop.com.bumptech.glide.load.resource.bitmap";
|
FileDescriptorBitmapDataLoadProvider.java | 1 package com.bumptech.glide.load.resource.bitmap; 3 import android.graphics.Bitmap; 19 * {@link android.graphics.Bitmap}s from {@link android.os.ParcelFileDescriptor} data. 21 public class FileDescriptorBitmapDataLoadProvider implements DataLoadProvider<ParcelFileDescriptor, Bitmap> { 22 private final ResourceDecoder<File, Bitmap> cacheDecoder; 28 cacheDecoder = new FileToStreamDecoder<Bitmap>(new StreamBitmapDecoder(bitmapPool, decodeFormat)); 35 public ResourceDecoder<File, Bitmap> getCacheDecoder() { 40 public ResourceDecoder<ParcelFileDescriptor, Bitmap> getSourceDecoder() { 50 public ResourceEncoder<Bitmap> getEncoder() {
|
GlideBitmapDrawableResource.java | 1 package com.bumptech.glide.load.resource.bitmap; 8 * A resource wrapper for {@link com.bumptech.glide.load.resource.bitmap.GlideBitmapDrawable}.
|
ImageVideoDataLoadProvider.java | 1 package com.bumptech.glide.load.resource.bitmap; 3 import android.graphics.Bitmap; 18 * {@link android.os.ParcelFileDescriptor} as an {@link android.graphics.Bitmap}. 20 public class ImageVideoDataLoadProvider implements DataLoadProvider<ImageVideoWrapper, Bitmap> { 22 private final ResourceDecoder<File, Bitmap> cacheDecoder; 23 private final ResourceEncoder<Bitmap> encoder; 26 public ImageVideoDataLoadProvider(DataLoadProvider<InputStream, Bitmap> streamBitmapProvider, 27 DataLoadProvider<ParcelFileDescriptor, Bitmap> fileDescriptorBitmapProvider) { 37 public ResourceDecoder<File, Bitmap> getCacheDecoder() { 42 public ResourceDecoder<ImageVideoWrapper, Bitmap> getSourceDecoder() [all...] |
StreamBitmapDataLoadProvider.java | 1 package com.bumptech.glide.load.resource.bitmap; 3 import android.graphics.Bitmap; 19 * {@link android.graphics.Bitmap}s using {@link java.io.InputStream} data. 21 public class StreamBitmapDataLoadProvider implements DataLoadProvider<InputStream, Bitmap> { 25 private final FileToStreamDecoder<Bitmap> cacheDecoder; 31 cacheDecoder = new FileToStreamDecoder<Bitmap>(decoder); 35 public ResourceDecoder<File, Bitmap> getCacheDecoder() { 40 public ResourceDecoder<InputStream, Bitmap> getSourceDecoder() { 50 public ResourceEncoder<Bitmap> getEncoder() {
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/ |
GifBitmapProvider.java | 4 import android.graphics.Bitmap; 17 public Bitmap obtain(int width, int height, Bitmap.Config config) { 22 public void release(Bitmap bitmap) { 23 if (!bitmapPool.put(bitmap)) { 24 bitmap.recycle();
|
GifFrameResourceDecoder.java | 3 import android.graphics.Bitmap; 9 import com.bumptech.glide.load.resource.bitmap.BitmapResource; 11 class GifFrameResourceDecoder implements ResourceDecoder<GifDecoder, Bitmap> { 19 public Resource<Bitmap> decode(GifDecoder source, int width, int height) { 20 Bitmap bitmap = source.getNextFrame(); local 21 return BitmapResource.obtain(bitmap, bitmapPool);
|
/external/pdfium/third_party/freetype/src/raster/ |
ftrend1.c | 98 /* convert a slot's glyph image into a bitmap */ 109 FT_Bitmap* bitmap; local 187 bitmap = &slot->bitmap; 190 /* release old bitmap buffer */ 193 FT_FREE( bitmap->buffer ); 202 bitmap->pixel_mode = FT_PIXEL_MODE_GRAY; 203 bitmap->num_grays = 256; 208 bitmap->pixel_mode = FT_PIXEL_MODE_MONO; 211 bitmap->width = width [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
FadeDrawableComponent.java | 114 DrawableBitmap bitmap = factory.allocateDrawableBitmap(); local 115 bitmap.resize((int)mTexture.width, (int)mTexture.height); 117 bitmap.setWidth((int)parentObject.width); 118 bitmap.setHeight((int)parentObject.height); 119 bitmap.setOpacity(opacity); 120 bitmap.setTexture(mTexture); 121 mRenderComponent.setDrawable(bitmap);
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
BitmapTest.java | 3 import android.graphics.Bitmap; 4 import android.graphics.Bitmap.Config; 24 Bitmap originalBitmap = Robolectric.newInstanceOf(Bitmap.class); 25 shadowOf(originalBitmap).appendDescription("Original bitmap"); 26 Bitmap scaledBitmap = Bitmap.createScaledBitmap(originalBitmap, 100, 200, false); 27 assertEquals("Original bitmap scaled to 100 x 200", shadowOf(scaledBitmap).getDescription()); 34 Bitmap bitmap = Bitmap.createBitmap(100, 200, Config.ARGB_8888) local 40 Bitmap bitmap = Bitmap.createBitmap(100, 200, Config.ARGB_8888); local 55 Bitmap bitmap = Bitmap.createBitmap(100, 200, Config.ARGB_8888); local 126 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local 135 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local [all...] |
/external/skia/bench/ |
DecodingBench.cpp | 83 // decode to a bitmap with the same settings used to create 95 SkBitmap bitmap; local 107 decoder->decode(stream, &bitmap, fColorType,
|
DecodingSubsetBench.cpp | 67 SkBitmap bitmap; local 69 fDecoder->decodeSubset(&bitmap, rect, fColorType);
|
/external/skia/gm/ |
bitmappremul.cpp | 14 * This GM checks that bitmap pixels are unpremultiplied before being exported 18 * This tests both the ARGB4444 and ARGB8888 bitmap configurations. 25 static void init_bitmap(SkColorType ct, SkBitmap* bitmap) { 26 bitmap->allocPixels(SkImageInfo::Make(SLIDE_SIZE, SLIDE_SIZE, ct, 28 bitmap->eraseColor(SK_ColorWHITE); 32 SkBitmap bitmap; local 33 init_bitmap(kN32_SkColorType, &bitmap); 36 uint32_t* dst = bitmap.getAddr32(0, y); 45 return bitmap; 49 SkBitmap bitmap; local 66 SkBitmap bitmap; local 85 SkBitmap bitmap; local [all...] |
extractbitmap.cpp | 17 static void create_bitmap(SkBitmap* bitmap) { 20 bitmap->allocN32Pixels(W, H); 22 SkCanvas canvas(*bitmap); 44 SkBitmap bitmap; variable 45 create_bitmap(&bitmap); variable 46 int x = bitmap.width() / 2; 47 int y = bitmap.height() / 2; 51 canvas->drawBitmap(bitmap, 0, 0); 56 // Draw the bottom right fourth of the bitmap over the top left 58 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y)) [all...] |
/external/skia/samplecode/ |
SampleWritePixels.cpp | 19 static void create_bitmap(SkBitmap* bitmap) { 22 bitmap->allocN32Pixels(W, H); 24 SkCanvas canvas(*bitmap); 47 SkBitmap bitmap; local 48 create_bitmap(&bitmap); 49 int x = bitmap.width() / 2; 50 int y = bitmap.height() / 2; 53 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y)); 57 canvas->writePixels(bitmap, 0, 0);
|
/external/skia/src/effects/ |
SkBitmapSource.cpp | 15 SkBitmapSource::SkBitmapSource(const SkBitmap& bitmap) 17 , fBitmap(bitmap) 18 , fSrcRect(SkRect::MakeWH(SkIntToScalar(bitmap.width()), 19 SkIntToScalar(bitmap.height()))) 24 SkBitmapSource::SkBitmapSource(const SkBitmap& bitmap, 28 , fBitmap(bitmap) 44 SkBitmap bitmap; local 45 if (!buffer.readBitmap(&bitmap)) { 48 return SkBitmapSource::Create(bitmap, src, dst, filterQuality); 64 // No regions cropped out or resized; return entire bitmap [all...] |
/external/skia/src/images/ |
SkMovie.cpp | 69 const SkBitmap& SkMovie::bitmap() function in class:SkMovie
|
/external/skia/tools/ |
chrome_fuzz.cpp | 29 static void run_test_case(const SkString& testdata, const SkBitmap& bitmap, 48 canvas->drawBitmap(bitmap, 0, 0, &paint); 57 static bool read_and_run_test_case(const char* filename, const SkBitmap& bitmap, 64 run_test_case(testdata, bitmap, canvas); 70 SkBitmap bitmap; local 71 bitmap.allocN32Pixels(kBitmapSize, kBitmapSize); 72 SkCanvas canvas(bitmap); 75 if (!read_and_run_test_case(argv[i], bitmap, &canvas))
|
/frameworks/base/core/java/com/android/internal/util/ |
UserIcons.java | 20 import android.graphics.Bitmap; 45 * Converts a given drawable to a bitmap. 47 public static Bitmap convertToBitmap(Drawable icon) { 53 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local 54 Canvas canvas = new Canvas(bitmap); 57 return bitmap;
|
/frameworks/base/core/jni/ |
android_view_PointerIcon.h | 48 SkBitmap bitmap; member in struct:android::PointerIcon 58 bitmap.reset(); 68 /* Loads the bitmap associated with a pointer icon. 73 /* Loads the bitmap associated with a pointer icon by style.
|