About 244,000 results
Open links in new tab
  1. android - How to create white border around bitmap ... - Stack Overflow

    Nov 13, 2011 · Bitmap bmpWithBorder = Bitmap.createBitmap(bmp.getWidth() + borderSize * 2, bmp.getHeight() + borderSize * 2, bmp.getConfig()); Canvas canvas = new …

  2. add White Border to Bitmap - Android Graphics - Java2s

    public static Bitmap addWhiteBorder(Bitmap bmp, int borderSize) { Bitmap bmpWithBorder = Bitmap.createBitmap(bmp.getWidth() + borderSize * 2, bmp.getHeight() + borderSize * 2, …

  3. Android to add borders rounded Bitmap - Programmer Sought

    private Bitmap getBitmapByColor(int width, int height) { Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); int[] pixels = new int[width * …

  4. Android Example Add border to Views and change Checkbox graphic

    Jan 6, 2014 · How would you go on putting a border on a check-box that uses a bitmap (png, jpg, etc.) and control it's size? Also, how do you set the corner ratio for drawables and bitmaps …

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

    Apr 24, 2025 · To create a Bitmap in Android, you can use the Bitmap.createBitmap method and specify the desired width, height, and color format: Bitmap bitmap = …

  6. android - How to add Border around Bitmap - Stack Overflow

    Mar 15, 2012 · I want to be able to apply the border to the Bitmap only once, then when I simply call Canvas.draw(bitmap) the border will be there around the bitmap. It is preferable that the …

  7. Android Tutorial => Apply a radial mask (vignette) to a bitmap...

    * Apply a radial mask (vignette, i.e. fading to black at the borders) to a bitmap. * @param imageToApplyMaskTo Bitmap to modify. */ Canvas canvas = new …

  8. Android Example RoundBitmapWithBorder - inline java code

    Mar 15, 2015 · Attached project draws a circular bitmap within an imageview including an adjustable border (colour and width) around the image. Making use of inline java code. Only …

  9. 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 …

  10. Crop Circular Area from Bitmap in Android - Online Tutorials …

    Learn how to crop a circular area from a bitmap in Android with this step-by-step guide.

  11. Some results have been removed