HomeSort by relevance Sort by last modified time
    Searched refs:bitmap (Results 326 - 350 of 1127) sorted by null

<<11121314151617181920>>

  /external/webkit/Source/WebKit2/UIProcess/win/
BackingStoreWin.cpp 53 BitmapDC::BitmapDC(HBITMAP bitmap, HDC destinationDC)
55 , m_originalBitmap(static_cast<HBITMAP>(::SelectObject(m_dc.get(), bitmap)))
72 // FIXME: Maybe it would be better for performance to create a device-dependent bitmap here?
78 void BackingStore::incorporateUpdate(ShareableBitmap* bitmap, const UpdateInfo& updateInfo)
96 bitmap->paint(graphicsContext, updateRect.location(), srcRect);
  /frameworks/base/core/java/android/view/
PointerIcon.java 25 import android.graphics.Bitmap;
44 /** Style constant: Custom icon with a user-supplied bitmap. */
47 /** Style constant: Null icon. It has no bitmap. */
73 private Bitmap mBitmap;
82 * Gets a special pointer icon that has no bitmap.
149 * Creates a custom pointer from the given bitmap and hotspot information.
151 * @param bitmap The bitmap for the icon.
152 * @param hotspotX The X offset of the pointer icon hotspot in the bitmap.
153 * Must be within the [0, bitmap.getWidth()) range
    [all...]
  /frameworks/base/core/jni/android/graphics/
BitmapRegionDecoder.cpp 204 // Get the bitmap for re-use if it exists.
224 SkBitmap* bitmap = NULL; local
228 // Re-use bitmap.
229 bitmap = GraphicsJNI::getNativeBitmap(env, tileBitmap);
231 if (bitmap == NULL) {
232 bitmap = new SkBitmap;
233 adb.reset(bitmap);
236 if (!brd->decodeRegion(bitmap, region, prefConfig, sampleSize)) {
242 env->SetIntField(options, gOptions_widthFieldID, bitmap->width());
243 env->SetIntField(options, gOptions_heightFieldID, bitmap->height())
    [all...]
  /frameworks/base/graphics/java/android/graphics/
Canvas.java 28 * 4 basic components: A Bitmap to hold the pixels, a Canvas to host
29 * the draw calls (writing into the bitmap), a drawing primitive (e.g. Rect,
30 * Path, text, Bitmap), and a paint (to describe the colors and styles for the
44 private Bitmap mBitmap;
52 protected int mDensity = Bitmap.DENSITY_NONE;
59 protected int mScreenDensity = Bitmap.DENSITY_NONE;
77 // Maximum bitmap size as defined in Skia's native code
105 * Construct an empty raster canvas. Use setBitmap() to specify a bitmap to
106 * draw into. The initial target density is {@link Bitmap#DENSITY_NONE};
107 * this will typically be replaced when a target bitmap is set for th
    [all...]
NinePatch.java 21 * The NinePatch class permits drawing a bitmap in nine sections.
38 private final Bitmap mBitmap;
45 * Create a drawable projection from a bitmap to nine patches.
47 * @param bitmap The bitmap describing the patches.
49 * bitmap is split apart and drawn.
50 * @param srcName The name of the source for the bitmap. Might be null.
52 public NinePatch(Bitmap bitmap, byte[] chunk, String srcName) {
53 mBitmap = bitmap;
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/detail/
ContactDetailPhotoSetter.java 21 import android.graphics.Bitmap;
42 Bitmap bitmap = setCompressedImage(contactData.getPhotoBinaryData()); local
43 return setupClickListener(context, contactData, bitmap, expandPhotoOnClick);
50 private final Bitmap mPhotoBitmap;
54 public PhotoClickListener(Context context, Contact contactData, Bitmap photoBitmap,
89 // Cache the bitmap directly, so the activity can pull it from the
99 private OnClickListener setupClickListener(Context context, Contact contactData, Bitmap bitmap,
105 context, contactData, bitmap, getCompressedImage(), expandPhotoOnClick)
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/util/
ContactPhotoUtils.java 22 import android.graphics.Bitmap;
78 * Creates a byte[] containing the PNG-compressed bitmap, or null if
81 public static byte[] compressBitmap(Bitmap bitmap) {
82 final int size = bitmap.getWidth() * bitmap.getHeight() * 4;
85 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
  /frameworks/base/libs/hwui/
PathCache.cpp 110 static void initBitmap(SkBitmap& bitmap, uint32_t width, uint32_t height) {
111 bitmap.setConfig(SkBitmap::kA8_Config, width, height);
112 bitmap.allocPixels();
113 bitmap.eraseColor(0);
128 static void drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap,
130 initBitmap(bitmap, width, height);
135 SkCanvas canvas(bitmap);
234 // Don't even try to cache a bitmap that's bigger than the cache
260 SkBitmap bitmap; local
261 drawPath(path, paint, bitmap, left, top, offset, width, height)
339 SkBitmap* bitmap = new SkBitmap(); local
418 SkBitmap* bitmap = task->getResult(); local
    [all...]
  /packages/apps/Gallery2/tests/src/com/android/photos/data/
MediaCacheTest.java 20 import android.graphics.Bitmap;
173 Bitmap bitmap = BitmapFactory.decodeStream(mReady.mInputStream); local
175 assertNotNull(bitmap);
176 Bitmap original = BitmapFactory.decodeFile(mImage.getPath());
177 assertTrue(bitmap.getWidth() < original.getWidth());
178 assertTrue(bitmap.getHeight() < original.getHeight());
179 int maxDimension = Math.max(bitmap.getWidth(), bitmap.getHeight());
193 Bitmap bitmap = BitmapFactory.decodeStream(mReady.mInputStream)
    [all...]
  /external/skia/include/core/
SkCanvas.h 42 A Canvas encapsulates all of the state about drawing into a device (bitmap).
67 /** Deprecated - Construct a canvas with the specified bitmap to draw into.
68 @param bitmap Specifies a bitmap for the canvas to draw into. Its
71 explicit SkCanvas(const SkBitmap& bitmap);
91 the bitmap of the pixels that the canvas draws into. The reference count
157 * On success (returns true), copy the canvas pixels into the bitmap.
158 * On failure, the bitmap parameter is left unchanged and false is
161 * The canvas' pixels are converted to the bitmap's config. The only
167 * If the bitmap has pixels already allocated, the canvas pixels will b
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/skia/
ImageBufferSkia.cpp 109 return BitmapImageSingleFrameSkia::create(*m_data.m_platformContext.bitmap(), true);
136 RefPtr<Image> image = BitmapImageSingleFrameSkia::create(*m_data.m_platformContext.bitmap(), context == m_context);
143 RefPtr<Image> image = BitmapImageSingleFrameSkia::create(*m_data.m_platformContext.bitmap(), context == m_context);
149 const SkBitmap& bitmap = *context()->platformContext()->bitmap(); local
150 if (bitmap.isNull())
153 ASSERT(bitmap.config() == SkBitmap::kARGB_8888_Config);
154 SkAutoLockPixels bitmapLock(bitmap);
156 uint32_t* srcRow = bitmap.getAddr32(0, y);
244 // bytes from the bitmap format to RGBA
378 SkBitmap bitmap = device->accessBitmap(false); local
    [all...]
  /development/samples/training/bitmapfun/src/com/example/android/bitmapfun/util/
ImageWorker.java 23 import android.graphics.Bitmap;
37 * This class wraps up completing some arbitrary long running work when loading a bitmap to an
47 private Bitmap mLoadingBitmap;
70 * will be created to asynchronously load the bitmap.
87 // Bitmap found in memory cache
103 * Set placeholder bitmap that shows when the the background thread is running.
105 * @param bitmap
107 public void setLoadingImage(Bitmap bitmap) {
108 mLoadingBitmap = bitmap;
253 Bitmap bitmap = null; local
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/chromium/
TransparencyWin.cpp 123 // This bitmap will be empty if you don't specify needReferenceBuffer to the
134 // The destination bitmap we're drawing into.
254 // coordinate space of our bitmap.
414 SkBitmap* bitmap = const_cast<SkBitmap*>( local
420 // Fix up our bitmap, making it contain only the pixels which changed
423 SkAutoLockPixels lock(*bitmap);
424 for (int y = 0; y < bitmap->height(); y++) {
426 uint32_t* dest = bitmap->getAddr32(0, y);
427 for (int x = 0; x < bitmap->width(); x++) {
457 // Note that we need to specify the source layer subset, since the bitmap
469 const SkBitmap& bitmap = m_layerBuffer->context()->platformContext()->canvas()->getTopDevice()->accessBitmap(true); local
    [all...]
  /packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
ImageViewTouchBase.java 21 import android.graphics.Bitmap;
62 // The current bitmap being displayed.
63 private Bitmap mBitmapDisplayed;
150 public void setImageBitmap(Bitmap bitmap) {
151 super.setImageBitmap(bitmap);
158 mBitmapDisplayed = bitmap;
169 * @return The image bitmap
171 public Bitmap getImageBitmap() {
178 * @param bitmap The bitma
    [all...]
  /frameworks/ex/carousel/java/com/android/ex/carousel/
CarouselRS.java 20 import android.graphics.Bitmap;
609 public void setDefaultBitmap(Bitmap bitmap)
611 mScript.set_defaultTexture(allocationFromBitmap(bitmap, MIPMAP));
614 public void setLoadingBitmap(Bitmap bitmap)
616 mScript.set_loadingTexture(allocationFromBitmap(bitmap, MIPMAP));
649 private Allocation allocationFromBitmap(Bitmap bitmap, Allocation.MipmapControl mipmap)
651 if (bitmap == null) return null
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
Canvas_VertexModeTest.java 18 import android.graphics.Bitmap;
21 import android.graphics.Bitmap.Config;
45 Bitmap bitmap = Bitmap.createBitmap(10, 27, Config.RGB_565); local
46 Canvas c = new Canvas(bitmap);
  /dalvik/vm/alloc/
HeapBitmap.h 45 /* The bitmap data, which points to an mmap()ed area of zeroed
51 * value changes when the bitmap is shrunk.
62 * the bitmap.
81 * Initialize a HeapBitmap so that it points to a bitmap large
89 * Clean up any resources associated with the bitmap.
94 * Fill the bitmap with zeroes. Returns the bitmap's memory to
100 * Returns true if the address range of the bitmap covers the object
106 * Applies the callback function to each set address in the bitmap.
108 void dvmHeapBitmapWalk(const HeapBitmap *bitmap,
    [all...]
  /external/chromium/chrome/browser/tab_contents/
thumbnail_generator.h 66 // because it will also fetch the bitmap even if the tab is hidden.
104 // bitmap are all the same brightness.
105 static double CalculateBoringScore(SkBitmap* bitmap);
107 // Gets the clipped bitmap from |bitmap| per the aspect ratio of the
109 // bitmap is vertically long (ex. 400x900) and the desired size is
110 // square (ex. 100x100), the clipped bitmap will be the top half of the
111 // input bitmap (400x400).
112 static SkBitmap GetClippedBitmap(const SkBitmap& bitmap,
  /external/chromium/chrome/browser/themes/
theme_service_gtk.cc 32 SkBitmap* bitmap = GetBitmapNamed(id);
33 GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(bitmap);
47 // We failed to retrieve the bitmap, show a debugging red square.
53 // The placeholder bitmap is bright red so people notice the problem.
54 // This bitmap will be leaked, but this code should never be hit.
  /external/chromium/chrome/browser/ui/window_snapshot/
window_snapshot_win.cc 31 base::win::ScopedBitmap bitmap(
38 SelectObject(mem_hdc, bitmap);
39 // Clear the bitmap to white (so that rounded corners on windows
  /external/opencv/otherlibs/highgui/
grfmt_imageio.cpp 136 CGContextRef context = NULL; // The bitmap context
138 uchar* bitmap = NULL; local
158 bitmap = (uchar*)malloc( bpp * m_height * m_width );
159 if( !bitmap )
165 context = CGBitmapContextCreate( (void *)bitmap,
176 free( bitmap );
180 // Copy the image data into the bitmap region
187 free( bitmap);
192 // Move the bitmap (in RGB) into data (in BGR)
220 memcpy (data + y * step, bitmap + y * m_width, m_width)
    [all...]
  /external/skia/legacy/src/utils/
SkProxyCanvas.cpp 90 void SkProxyCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y,
92 fProxy->drawBitmap(bitmap, x, y, paint);
95 void SkProxyCanvas::drawBitmapRect(const SkBitmap& bitmap, const SkIRect* src,
97 fProxy->drawBitmapRect(bitmap, src, dst, paint);
100 void SkProxyCanvas::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m,
102 fProxy->drawBitmapMatrix(bitmap, m, paint);
105 void SkProxyCanvas::drawSprite(const SkBitmap& bitmap, int x, int y,
107 fProxy->drawSprite(bitmap, x, y, paint);
  /external/skia/src/core/
SkOrderedWriteBuffer.cpp 147 void SkOrderedWriteBuffer::writeBitmap(const SkBitmap& bitmap) {
148 // Record information about the bitmap in one of three ways, in order of priority:
150 // bitmap entirely or serialize it later as desired.
151 // 2. Write an encoded version of the bitmap. Afterwards the width and height are written, so
152 // a reader without a decoder can draw a dummy bitmap of the right size.
153 // A. If the bitmap has an encoded representation, write it to the stream.
156 // For an encoded bitmap, write the size first. Otherwise store a 0 so the reader knows not to
160 // Bitmap was not encoded. Record a zero, implying that the reader need not decode.
162 int32_t slot = fBitmapHeap->insert(bitmap);
169 // bitmap heap
    [all...]
  /external/skia/src/utils/
SkPictureUtils.cpp 48 * behind its device-bitmap.
80 virtual void writePixels(const SkBitmap& bitmap, int x, int y,
105 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap,
108 this->addBitmap(bitmap);
110 virtual void drawBitmapRect(const SkDraw&, const SkBitmap& bitmap,
113 this->addBitmap(bitmap);
115 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap,
117 this->addBitmap(bitmap);
147 virtual bool onReadPixels(const SkBitmap& bitmap,
SkProxyCanvas.cpp 102 void SkProxyCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y,
104 fProxy->drawBitmap(bitmap, x, y, paint);
107 void SkProxyCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src,
109 fProxy->drawBitmapRectToRect(bitmap, src, dst, paint);
112 void SkProxyCanvas::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m,
114 fProxy->drawBitmapMatrix(bitmap, m, paint);
117 void SkProxyCanvas::drawSprite(const SkBitmap& bitmap, int x, int y,
119 fProxy->drawSprite(bitmap, x, y, paint);

Completed in 1533 milliseconds

<<11121314151617181920>>