HomeSort by relevance Sort by last modified time
    Searched full:bitmap (Results 126 - 150 of 1192) sorted by null

1 2 3 4 56 7 8 91011>>

  /frameworks/base/graphics/java/android/graphics/
Canvas.java 29 * 4 basic components: A Bitmap to hold the pixels, a Canvas to host
30 * the draw calls (writing into the bitmap), a drawing primitive (e.g. Rect,
31 * Path, text, Bitmap), and a paint (to describe the colors and styles for the
41 java-bitmap is). If we are a gl-based, then mBitmap will be null, and
45 private Bitmap mBitmap; // if not null, mGL must be null
52 /*package*/ int mDensity = Bitmap.DENSITY_NONE;
55 private int mScreenDensity = Bitmap.DENSITY_NONE;
62 * Construct an empty raster canvas. Use setBitmap() to specify a bitmap to
63 * draw into. The initial target density is {@link Bitmap#DENSITY_NONE};
64 * this will typically be replaced when a target bitmap is set for th
    [all...]
  /frameworks/base/core/jni/android/graphics/
NinePatchImpl.cpp 40 static bool getColor(const SkBitmap& bitmap, int x, int y, SkColor* c) {
41 switch (bitmap.getConfig()) {
43 *c = SkUnPreMultiply::PMColorToColor(*bitmap.getAddr32(x, y));
46 *c = SkPixel16ToPixel32(*bitmap.getAddr16(x, y));
50 SkPixel4444ToPixel32(*bitmap.getAddr16(x, y)));
53 SkColorTable* ctable = bitmap.getColorTable();
55 (*ctable)[*bitmap.getAddr8(x, y)]);
71 const SkBitmap& bitmap, const SkPaint& paint,
80 if (!getColor(bitmap, src.fLeft, src.fTop, &c)) {
91 canvas->drawBitmapRect(bitmap, &src, dst, &paint)
    [all...]
NinePatch.cpp 31 const SkBitmap& bitmap, const android::Res_png_9patch& chunk,
70 const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint,
89 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL);
106 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL);
114 const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint,
119 SkASSERT(bitmap);
126 draw(env, canvas, bounds, bitmap, chunkObj, paint, destDensity, srcDensity);
130 const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint,
135 SkASSERT(bitmap);
141 draw(env, canvas, bounds, bitmap, chunkObj, paint, destDensity, srcDensity)
    [all...]
  /packages/apps/Gallery3D/src/com/cooliris/media/
Util.java 24 import android.graphics.Bitmap;
47 // Rotates the bitmap by the specified degree.
48 // If a new bitmap is created, the original bitmap is recycled.
49 public static Bitmap rotate(Bitmap b, int degrees) {
54 Bitmap b2 = Bitmap.createBitmap(b, 0, 0, b.getWidth(), b.getHeight(), m, true);
60 // We have no memory to rotate. Return the original bitmap.
66 public static Bitmap transform(Matrix scaler, Bitmap source, int targetWidth, int targetHeight, boolean scaleUp)
    [all...]
AdaptiveBackgroundTexture.java 19 import android.graphics.Bitmap;
42 private final Bitmap mSource;
52 public AdaptiveBackgroundTexture(Bitmap source, int width, int height) {
77 protected Bitmap load(RenderView view) {
80 Bitmap source = mSource;
137 // Return a bitmap scaled to the desired size.
138 Bitmap filtered = Bitmap.createBitmap(in, cropWidth, cropHeight, Bitmap.Config.ARGB_8888);
140 // Composite the bitmap scaled to the target size and darken the pixels
    [all...]
  /external/skia/gm/
gmmain.cpp 60 static void force_all_opaque(const SkBitmap& bitmap) {
61 SkAutoLockPixels lock(bitmap);
62 for (int y = 0; y < bitmap.height(); y++) {
63 for (int x = 0; x < bitmap.width(); x++) {
64 *bitmap.getAddr32(x, y) |= (SK_A32_MASK << SK_A32_SHIFT);
69 static bool write_bitmap(const SkString& path, const SkBitmap& bitmap) {
71 bitmap.copyTo(&copy, SkBitmap::kARGB_8888_Config);
151 SkBitmap bitmap; local
153 bitmap.setConfig(gRec[i].fConfig, size.width(), size.height());
154 bitmap.allocPixels()
    [all...]
  /external/skia/include/core/
SkDevice.h 34 the bitmap. If transferPixelOwnership is true, and the bitmap claims to own its
36 device, and call setOwnsPixels(false) on the bitmap.
41 @param bitmap A copy of this bitmap is made and stored in the device
43 SkDevice(const SkBitmap& bitmap);
51 /** Return the bitmap config of the device's pixels
54 /** Returns true if the device's bitmap's config treats every pixels as
69 /** Return the bitmap associated with this device. Call this each time you need
70 to access the bitmap, as it notifies the subclass to perform any flushin
    [all...]
  /packages/apps/Camera/src/com/android/camera/ui/
Texture.java 19 import android.graphics.Bitmap;
20 import android.graphics.Bitmap.Config;
81 protected abstract Bitmap getBitmap();
83 protected abstract void freeBitmap(Bitmap bitmap);
93 Bitmap bitmap = getBitmap(); local
95 if (bitmap != null) {
102 // Upload the bitmap to a new texture.
115 GLUtils.texImage2D(GL11.GL_TEXTURE_2D, 0, bitmap, 0)
    [all...]
NinePatchTexture.java 20 import android.graphics.Bitmap;
83 protected void onDraw (Canvas canvas, Bitmap backing) {
91 protected void freeBitmap(Bitmap bitmap) {
92 mDelegate.freeBitmap(bitmap);
96 protected Bitmap getBitmap() {
  /cts/tests/tests/graphics/src/android/graphics/cts/
Canvas_VertexModeTest.java 18 import android.graphics.Bitmap;
21 import android.graphics.Bitmap.Config;
62 Bitmap bitmap = Bitmap.createBitmap(10, 27, Config.RGB_565); local
63 Canvas c = new Canvas(bitmap);
DiscretePathEffectTest.java 23 import android.graphics.Bitmap;
30 import android.graphics.Bitmap.Config;
64 Bitmap bitmap = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); local
65 bitmap.eraseColor(Color.TRANSPARENT);
67 Canvas canvas = new Canvas(bitmap);
89 int pixel = bitmap.getPixel(x, y);
PorterDuffColorFilterTest.java 18 import android.graphics.Bitmap;
24 import android.graphics.Bitmap.Config;
43 Bitmap b1 = Bitmap.createBitmap(width / 2, height, Config.ARGB_8888);
45 Bitmap b2 = Bitmap.createBitmap(width, height / 2, Config.ARGB_8888);
48 Bitmap target = Bitmap.createBitmap(width, height, Config.ARGB_8888);
PorterDuffXfermodeTest.java 22 import android.graphics.Bitmap;
28 import android.graphics.Bitmap.Config;
44 Bitmap target = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888);
46 Bitmap b1 = Bitmap.createBitmap(WIDTH / 2, HEIGHT, Config.ARGB_8888);
48 Bitmap b2 = Bitmap.createBitmap(WIDTH, HEIGHT / 2, Config.ARGB_8888);
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
AlphaBitmap.java 40 private Bitmap mBitmap;
41 private Bitmap mBitmap2;
42 private Bitmap mBitmap3;
45 private static void drawIntoBitmap(Bitmap bm) {
70 mBitmap3 = Bitmap.createBitmap(200, 200, Bitmap.Config.ALPHA_8);
Patterns.java 35 private static Bitmap makeBitmap1() {
36 Bitmap bm = Bitmap.createBitmap(40, 40, Bitmap.Config.RGB_565);
45 private static Bitmap makeBitmap2() {
46 Bitmap bm = Bitmap.createBitmap(64, 64, Bitmap.Config.ARGB_8888);
  /external/e2fsprogs/lib/ext2fs/
bitops.c 2 * bitops.c --- Bitmap frobbing code. See bitops.h for the inlined
80 void ext2fs_warn_bitmap2(ext2fs_generic_bitmap bitmap,
84 if (bitmap->description)
85 com_err(0, bitmap->base_error_code+code,
86 "#%lu for %s", arg, bitmap->description);
88 com_err(0, bitmap->base_error_code + code, "#%lu", arg);
  /packages/apps/Gallery/tests/src/com/android/camera/
BitmapManagerUnitTests.java 23 import android.graphics.Bitmap;
36 Bitmap bitmap; field in class:BitmapManagerUnitTests.DecodeThread
43 bitmap = mImage.thumbBitmap(IImage.ROTATE_AS_NEEDED);
46 public Bitmap getBitmap() {
47 return bitmap;
  /packages/apps/Mms/src/com/android/mms/ui/
ImageAttachmentView.java 23 import android.graphics.Bitmap;
67 public void setImage(String name, Bitmap bitmap) {
68 if (null == bitmap) {
69 bitmap = BitmapFactory.decodeResource(getResources(),
72 mImageView.setImageBitmap(bitmap);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/voice/
WaveformImage.java 19 import android.graphics.Bitmap;
29 * Utility class to draw a waveform into a bitmap, given a byte array
38 public static Bitmap drawWaveform(
40 final Bitmap b = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888);
  /packages/providers/MediaProvider/src/com/android/providers/media/
MediaThumbRequest.java 29 import android.graphics.Bitmap;
109 Uri updateDatabase(Bitmap thumbnail) {
173 Bitmap bitmap = null;
177 bitmap = ThumbnailUtils.createVideoThumbnail(mPath,
180 bitmap = ThumbnailUtils.createImageThumbnail(mPath,
183 if (bitmap == null) {
188 Uri uri = updateDatabase(bitmap);
191 bitmap.compress(Bitmap.CompressFormat.JPEG, 85, thumbOut)
    [all...]
  /external/freetype/src/base/
ftglyph.c 78 glyph->bitmap = slot->bitmap;
83 FT_Bitmap_New( &glyph->bitmap );
84 error = FT_Bitmap_Copy( library, &slot->bitmap, &glyph->bitmap );
104 return FT_Bitmap_Copy( library, &source->bitmap, &target->bitmap );
115 FT_Bitmap_Done( library, &glyph->bitmap );
127 cbox->xMax = cbox->xMin + ( glyph->bitmap.width << 6 );
129 cbox->yMin = cbox->yMax - ( glyph->bitmap.rows << 6 )
514 FT_BitmapGlyph bitmap = NULL; local
    [all...]
  /frameworks/base/docs/html/sdk/api_diff/4/changes/
android.graphics.Bitmap.html 10 android.graphics.Bitmap
74 Class android.graphics.<A HREF="../../../../reference/android/graphics/Bitmap.html" target="_top"><font size="+2"><code>Bitmap</code></font></A>
86 <A NAME="android.graphics.Bitmap.getDensity_added()"></A>
87 <nobr><code>int</code>&nbsp;<A HREF="../../../../reference/android/graphics/Bitmap.html#getDensity()" target="_top"><code>getDensity</code></A>()</nobr>
93 <A NAME="android.graphics.Bitmap.getScaledHeight_added(android.graphics.Canvas)"></A>
94 <nobr><code>int</code>&nbsp;<A HREF="../../../../reference/android/graphics/Bitmap.html#getScaledHeight(android.graphics.Canvas)" target="_top"><code>getScaledHeight</code></A>(<code>Canvas</code>)</nobr>
100 <A NAME="android.graphics.Bitmap.getScaledHeight_added(android.util.DisplayMetrics)"></A>
101 <nobr><code>int</code>&nbsp;<A HREF="../../../../reference/android/graphics/Bitmap.html#getScaledHeight(android.util.DisplayMetrics)" target="_top"><code>getScaledHeight</code></A>(<code>DisplayMetrics</code>)</nobr>
107 <A NAME="android.graphics.Bitmap.getScaledHeight_added(int)"></A
    [all...]
  /external/skia/include/images/
SkImageDecoder.h 123 // original bitmap, sampling 1 pixel for every size pixels. e.g. if sample
124 // size is set to 3, then the returned bitmap will be 1/3 as wide and high,
153 only the bitmap's width/height/config need be set. If kDecodePixels_Mode
154 is passed, then the bitmap must have pixels or a pixelRef.
157 kDecodeBounds_Mode, //!< only return width/height/config in bitmap
158 kDecodePixels_Mode //!< return entire bitmap (including pixels)
161 /** Given a stream, decode it into the specified bitmap.
162 If the decoder can decompress the image, it calls bitmap.setConfig(),
166 bitmap. It can then set the pixels with the decompressed image.
168 * decoding, the function converts the decoded config in bitmap
    [all...]
  /external/webkit/WebCore/platform/graphics/win/
GraphicsContextCairoWin.cpp 46 HBITMAP bitmap = static_cast<HBITMAP>(GetCurrentObject(hdc, OBJ_BITMAP)); local
48 BITMAP info;
49 if (!GetObject(bitmap, sizeof(info), &info))
97 HBITMAP bitmap = static_cast<HBITMAP>(GetCurrentObject(hdc, OBJ_BITMAP));
99 BITMAP info;
100 GetObject(bitmap, sizeof(info), &info);
103 // Need to make a cairo_surface_t out of the bitmap's pixel buffer and then draw
126 ::DeleteObject(bitmap);
  /frameworks/base/core/java/android/app/
IThumbnailReceiver.aidl 19 import android.graphics.Bitmap;
27 void newThumbnail(int id, in Bitmap thumbnail, CharSequence description);

Completed in 80 milliseconds

1 2 3 4 56 7 8 91011>>