Dim cd As ColorDrawable
cd.Initialize ( Colors.ARGB( 100, 0, 0, 0) , 5dip )
Panel1.Background = cd
The problem is: if I load an image in the panel (which is smaller than the panel panel because I set Gravity.Center, how do I set the rest of the panel with semi-transparency without "coloring" the inside of the image?
I attach image to make the idea
This is totally different from the goal you posted in #1!!!
In #1 you was writing about an Image in thr middle of a panel. So single word about a t-shirt and it´s outline.
I deleted a comment because you deleted your zip-file.
About t-shirt. If you want to change color for t-shirt (let's say yellow), you need to edit png in graphic editor - this is the most simple solution
This is totally different from the goal you posted in #1!!!
In #1 you was writing about an Image in thr middle of a panel. So single word about a t-shirt and it´s outline.
I deleted a comment because you deleted your zip-file.
About t-shirt. If you want to change color for t-shirt (let's say yellow), you need to edit png in graphic editor - this is the most simple solution
I want the inside of the image to be transparent! The 1.png image is it but inside the panel you can see the color of the panel. The INITIAL question was just this, how not to visualize the color of the panel inside the embankment
Example on photoshop :
Guess, you want to see like in attached png. Correct ? If so, you must prepare png : around t-shirt - transparent color, inside t-shirt - solid colors.
Guess, you want to see like in attached png. Correct ? If so, you must prepare png : around t-shirt - transparent color, inside t-shirt - solid colors.
Sorry, I don't understand
At first, we did both variant. What's wrong with first ?
The background of activity is light-color.
Panel color is semi-transparent black color (looks like dark red)
Inside and outside t-shirt there is the same color - semi-transparent black.
The second variant - t-shirt is colored. Which third variant can be ?
I want the inside of the shirt to be TRANSPARENT (in this case see the red) But this does not mean that I have to color the inside of the shirt red. I got it?