About 161,000 results
Open links in new tab
  1. android - How to make bitmap transparent? - Stack Overflow

    Feb 26, 2013 · // Convert transparentColor to be transparent in a Bitmap. int width = bit.getWidth(); int height = bit.getHeight(); Bitmap myBitmap = Bitmap.createBitmap(width, …

  2. Transparent sections in a view in Android | by Arun Badole | The ...

    Nov 14, 2018 · This tutorial gives you idea to create view with transparent sections. You can create any shape with any size for such views. You can tell your ideas & implementations in …

  3. make Bitmap Image Transparent - Android Graphics - Java2s

    public static Bitmap makeTransparent(Bitmap alphaGray, Bitmap src) { int width = src.getWidth(); int height = src.getHeight(); int [] alphaPix = new int [width * height]; …

  4. How to Draw Translucent Bitmaps on Canvas in Android?

    Drawing translucent bitmaps on Android's Canvas involves using the `Paint` class to set the alpha value, which controls the transparency of the bitmap. This method allows for blending images …

  5. android - How to draw a bitmap with transparency - Stack Overflow

    Mar 20, 2011 · How to draw a bitmap with a given color set as transparent? For example I want all white pixels to be transparent. You need to set the Alpha value for the paint you're passing to …

  6. Create a transparent bitmap from an existing bitmap by ... - Java2s

    import android.graphics.Color; class Main{ /** * create a transparent bitmap from an existing bitmap by replacing certain. * color with transparent. * @param bitmap. * the original bitmap …

  7. android - How to make some part of bitmap transparent ... - Stack Overflow

    May 11, 2015 · I need to make the black part of image transparent and obtain circular bitmap. the transparent method that i used: public static Bitmap makeTransparent(Bitmap bitmap, int …

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

  9. I've a bitmap image which contain both transparent area and …

    Jun 19, 2017 · I've to find out non-transparent co-ordinates and change its perspective in android. I've to find this angle of the image and change its perspective as per its angle. …

  10. Android: how apply transparency mask to a Bitmap?

    Jul 23, 2012 · Have you tried Bitmap.setHasAlpha and using arithmetic operations on your mutable Bitmap to simply "add" the alpha channel? That is, if you have a pixel that is …

  11. Some results have been removed
Refresh