Prathima
Prathima

Reputation: 35

Color selected portion of an image in android

I am a newbie and wanted to know how to apply transparent color in selected portion of the image? I have coded like this but I am not getting the transparent color. Not able to see the below image.

       Paint p = new Paint(Paint.ANTI_ALIAS_FLAG);
       p.setColor(SettingsActivity.myColor);  
       p.setStrokeWidth(20);  
       p.setStyle(Paint.Style.STROKE);  
       p.setAlpha(0xFF);  

Please suggest a solution.

Thanks in advance
Prathima

Upvotes: 1

Views: 438

Answers (1)

Sunil Kumar Sahoo
Sunil Kumar Sahoo

Reputation: 53647

See Color Picker Dialog

Upvotes: 1

Related Questions