About 3,510 results
Open links in new tab
  1. android - How to add images to bitmap - Stack Overflow

    Apr 23, 2012 · canvas.drawBitmap(bottomBmp, 0, 0, null); //Draw the bottom bitmap in the upper left corner of the canvas without any special paint effects. canvas.drawBitmap(topBmp, 0, 0, null); //Draw the top bitmap over the bottom bitmap, change the zeroes to offset this bitmap.

  2. Handling bitmaps | Views | Android Developers

    Jun 27, 2024 · For most cases, we recommend that you use the Glide library to fetch, decode, and display bitmaps in your app. Glide abstracts out most of the complexity in handling these and other tasks related to working with bitmaps and other images on Android.

  3. How to Create Bitmap From View in Android? - GeeksforGeeks

    Apr 24, 2025 · A Bitmap is an image representation that consists of pixels with a specified width, height, and color format. To create a Bitmap in Android, you can use the Bitmap.createBitmap method and specify the desired width, height, and color format: Bitmap bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(), Bitmap.Config.ARGB_8888);

  4. Bitmap Basics in Android Development: Key Considerations for

    Nov 20, 2024 · In Android development, the Bitmap class offers various methods to create and manipulate bitmaps, each serving specific purposes: From an Array of Pixel Data: Use Bitmap.createBitmap() with an...

  5. Mastering Android Bitmap Manipulation: Image Processing and …

    Jul 8, 2023 · Android Bitmap Manipulation is a powerful tool that allows developers to process and edit images in their Android applications. With the right techniques, you can take your image processing skills to the next level and create stunning visual effects.

  6. Android: How to overlay a bitmap and draw over a bitmap?

    public void putOverlay(Bitmap bitmap, Bitmap overlay) { Canvas canvas = new Canvas(bitmap); Paint paint = new Paint(Paint.FILTER_BITMAP_FLAG); canvas.drawBitmap(overlay, 0, 0, paint); } The idea is very simple: Once you associate a bitmap with a canvas, you can call any of the canvas' methods to draw over the bitmap.

  7. Working with images | Jetpack Compose | Android Developers

    6 days ago · Learn how to work with images using these details: Loading images: Learn how to load an image from disk or the internet; ImageBitmap versus ImageVector: Learn how to work with the two most common image formats, raster and vector.

  8. Working with ImageViews and Bitmaps in Android Application ... - InformIT

    The Bitmap(android.graphics.Bitmap) class represents a bitmap image. Bitmaps are created via the BitmapFactory(android.graphics.BitmapFactory) class. Three typical ways use BitmapFactory to create Bitmaps are to create a bitmap from a resource, file, or InputStream.

  9. How to work with Bitmap in Android | en.proft.me

    Feb 8, 2017 · In Android, you can create bitmaps with anti-aliased rounded corners on the fly using the code snippet below. Bitmap output = Bitmap.createBitmap(bitmap.getWidth(),bitmap.getHeight(), Config.ARGB_8888); Canvas canvas = new Canvas(output); final int color = 0xff424242; final Paint paint = new Paint();

  10. Android Studio 3.1.4: Adding a bitmap image file (not the app …

    Sep 6, 2018 · If you right click on any file or folder in the project (left) pane of Android Studio, you can then select "Add Image" and add your own image, specifying where it should go.

  11. Some results have been removed
Refresh