porter-duff Questions

4

Solved

I'm trying to create the following design in my app. Design Mockup Its an overlay on top of the main UI. Trying to create this using a layout on top of the main UI with its background as a tran...
Brandenburg asked 21/4, 2016 at 8:15

1

I am trying to use Android's PorterDuff to draw a shadow that will only appear where there is something below it (not where the background image is transparent) and I am having great difficulty get...
Whatley asked 13/7, 2017 at 11:35

2

Solved

Based on the images and PorterDuffModes in this page I downloaded images, initially even though they are png they had light and dark gray rectangles which were not transparent and removed them. A...
Cutlor asked 10/1, 2021 at 13:1

7

Solved

I'm trying to create a custom View which works simple: there is a Bitmap which is revealed by arc path - from 0deg to 360deg. Degrees are changing with some FPS. So I made a custom View with overr...
Multiangular asked 22/8, 2013 at 18:8

5

Solved

I notice that other puzzle apps from the google play store can go up to as many as 400 separate movable puzzle pieces I have been attempting to learn how to at least take an image that will repres...
Drip asked 29/2, 2016 at 18:5

4

Solved

I'm trying to blend two images together with Android, using a Multiply-like blending mode. // Prepare ------------------------------- // Create source images Bitmap img1 = ... Bitmap img2 = ... ...
Adiathermancy asked 12/10, 2011 at 21:58

4

Solved

Having a rich UI application in which I want to show image with complex shape like this Now what I want is to crop my image as per Mask image, Actually image is coming dynamic and can be importe...
Boatman asked 27/9, 2012 at 5:18

5

Solved

I'd like to add a ColorFilter to ImageView. Currently I'm using: ImageView iv = (ImageView)findViewById(resIdOfImageToFilter); iv.setColorFilter(Color.RED, PorterDuff.Mode.SRC_ATOP); I've check...
Redneck asked 19/11, 2011 at 10:35

1

Solved

I am trying to achieve an effect similar to this one: What I am doing now: public MaskedTextView(Context context, AttributeSet attrs) { super(context, attrs); p = new Paint(Paint.ANTI_ALIAS_...

2

I'm trying to implement poor-man's blending modes for CSS, in anticipation of browsers rolling out support. (The CSS preprocessor I'm using is Stylus, which isn't important to the discussion.) I've...
Sula asked 22/6, 2012 at 20:56

0

I was playing around with Bitmaps masking and occasionally found an interesting issue when trying to draw ALPHA_8 bitmap mask with PorterDuff.Mode.DST_IN Paint. It just doesn't work, at least on An...
Catinacation asked 24/7, 2016 at 13:33

0

I want to create the crop bitmap functionality and have referred Android: Free Croping of Image but this sets the bitmap in another imageView.Now I know I can set the cropped bitmap in the canvas b...
Mcwhirter asked 29/4, 2016 at 17:10

1

Solved

I have the following layout: <LinearLayout android:id="@+id/myButton" android:layout_width="@dimen/logo_radius" android:layout_height="match_parent" android:background="@drawable/myShape"&...
Finagle asked 15/2, 2016 at 0:9

6

Solved

I made this Custom Drawable that should clip any Drawable in circle. But with my implementation, the drawable passed is being the output in the original form not in the circular form. public class...
Chappy asked 3/12, 2015 at 11:58

2

Solved

The popular game Words with Friends draws letter tiles at the game board as a single entity - You can see a yellow linear gradient applied to all letter tiles in the following screenshot and also ...
Boyt asked 7/6, 2015 at 19:14

0

What's the difference between those two implementations? DrawableCompat.setTintMode(wrappedDrawable, Mode.SRC_ATOP); DrawableCompat.setTint(wrappedDrawable, color); and drawable.setColorFilter(...
Winonawinonah asked 21/5, 2015 at 15:13

0

There are some predefined blending modes described here: https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html Is there a possibility to use some other custom modes? (for d...
Tearjerker asked 20/3, 2015 at 6:32

1

Solved

I have a Path that crosses over itself and I want to change the color of the areas that are gone over more than once. Like below: So I set up my paint. highlighterPaint = new Paint(); highlig...
Insolence asked 24/10, 2014 at 21:17

0

My app lets the user edit an image. The image is edited in "slices": The user selects a portion of the big image to edit (1), the user edits it (2, 3), and then when the user finishes, the edited s...
Demetricedemetris asked 22/11, 2014 at 8:17

2

Solved

I would like to know what PorterDuff.Mode means in android graphics. I know that it is a transfer mode. I also know, that it has attributes such as DST_IN, Multiply etc.
Guillen asked 26/11, 2011 at 16:56

1

Solved

I am trying to do something very simple (see above). I want all of the pixels of a canvas to be a solid color, except for the the pixels that fill a centered circle. I have read hundreds stack ov...
Hindsight asked 14/12, 2013 at 23:2

3

Solved

Is it possible in android to set up a view in a way that it applies some color filter to everything below that's visible in its bounds? Like in this example: Just a simple rectangular view that...
Foregather asked 24/8, 2013 at 13:35

2

Solved

I want to draw on a bitmap using another bitmap as mask. The mask is a black bitmap with a transparent object in it. I want this transparent part to be filled with an arbitrary color and added to m...
Lundt asked 24/7, 2013 at 13:28

1

I am doing a small project for college and wondering if someone can tell me how I would go about doing a scratch card app. This app should have one image overlaying another. The one on top should a...
Allemande asked 1/5, 2011 at 13:39

3

I'm trying to solve a problem with android ColorFilters. Documentation is very poor, so the main method is trying different variants. The problem: There is a Bitmap. Some pixels have alpha=255, o...
Pivoting asked 20/4, 2012 at 11:50

© 2022 - 2024 — McMap. All rights reserved.