How to get black shadow around the image dynamicaly? - android

I am working on image processing i have achieved color effect using ColorMatrix but i cant understand how to achieved one effect that is not on whole image but only around the image like i have attached image. Actually i m working on image editor app like : BeFunkey
Here original image and processed image i have attached. You can see in effect on second image that is only around the image black shadow. Please can anybody tell me how to do this. Thank you in advance.

You need to set RGB colors of you bitmaps. Have a look over android-image-filter
This demo will fulfill your requirements.

Related

Remove white background from masked image in android

I want to crop a bitmap in polygon shape drawn above that bitmap. I'm using masking of bitmap to do this.
The operation succeeds well, unfortunately the resulted bitmap after masking has a white background in cropped area,as you can see in the image:
And my mask that is created runtime by dragging rectangle around image and creating a polygon shape on above the image is as below :
I want to remove this unwanted white background. Does any one has idea how could I do this.
Any clue or help about how can I do is greatly appreciated.
Thanks in advance.

How to make glow effect in image view for a small part

I want to make a small part of the image glow whenever the activity is loaded. Do I need to take the exact coordinates of the image part?
I recommend using a GIF. It can be loaded as an image and won't require any changes in your code. A smallish tutorial can be found in this Youtube video.

Making a certain color transparent on an image

I have an image that is circular and I want to make the other junk in the image to be transparent. I've spent the last hour looking around and I can't seem to figure out how this is done for android. Any help is greatly appreciated!
I haven't worked with Android but on iOS pngs weren't loading for me when I made them in photoshop but when I made them in flash all of a sudden they would work! Try that first :)
Anyways, you want to google something along the line of "pixel arrays android code" you can create an array of each pixel, find an individual color, then make it transparent...
But I really think this is just a GIMP issue and you don't need to go through all of that hassle.
what i can understand from your uncleared words is that you want to display transparent image of a normal image you have . so i would suggest don't do it through programming . create a transparent image through any image editor tool and use it .
if image is dynamic that you cant go in this way so use Matrix and setAlpha . search over net for both the terms

Android: clip image to shape

(Sorry for my bad english)
I have two pictures. One picture is colorful and big. On the other picture shows a black figure arbitrary shape (like a cross or a star or a piece of the classic puzzle) on a transparent background.
I want to put the second picture on the first picture and replace the black with part of the first image. Then i need to save the second image in a new file.
Thank you.
Max.
You can get this by using a library and a single line code.
Please try this, hope you will get a better solution.
dependencies {
compile 'com.mafstech.libs:mafs-image-shape:1.0.4'
}
And this line is your main code
Shaper.shape(context, R.drawable.your_original_image_which_will_be_displayed, R.drawable.shaped_image__your_original_image_will_get_this_images_shape, imageView, height, weight);
You need to use xfer modes, unless you are preaperd to create Paths and then clip canvas.
Check my answer here: how to draw pic to Closed curve area
Follow the links for examples...

android cropping drawable

I have a small project in which i download images from internet in the form of drawable and use them in Imageview for which i have provided functionality similar to an Imagebutton but without the gray edges.
The question is that is there any functionality in Android(similar to iphone) by which we can crop the drawable from edges to make them rounded edged drawable...
Even if its a "not-tested-neither-recommended" method, do let me know... i would like to work on this a bit... thanx in advance folks...
I believe this is probably the link you're looking for: How should I give images rounded corners in Android?
I tried doing it with a drawable and nested and elements, but wasn't able to get the image drawable to show properly. Not sure if there's a way to get this working or not.

Categories

Resources