paint.setColor(0xFF0000); does not work.

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

paint.setColor(0xFF0000); does not work.

Postby sblantipodi » Sun Mar 28, 2010 12:25 am

As title,
can you tell me why if I'm on a canvas and try to draw a line of a different color,
this line does not change the color?

paint.setColor(0xFF0000);

thanks.
sblantipodi
Senior Developer
Senior Developer
 
Posts: 122
Joined: Fri Mar 26, 2010 1:41 pm

Top

Re: paint.setColor(0xFF0000); does not work.

Postby pskink » Sun Mar 28, 2010 6:43 am

sblantipodi wrote:As title,
can you tell me why if I'm on a canvas and try to draw a line of a different color,
this line does not change the color?

paint.setColor(0xFF0000);

thanks.


why do you want do draw red color with alpha channel == 0?

it makes color to be invisible (transparent)
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Re: paint.setColor(0xFF0000); does not work.

Postby sblantipodi » Sun Mar 28, 2010 5:21 pm

pskink wrote:
sblantipodi wrote:As title,
can you tell me why if I'm on a canvas and try to draw a line of a different color,
this line does not change the color?

paint.setColor(0xFF0000);

thanks.


why do you want do draw red color with alpha channel == 0?

it makes color to be invisible (transparent)


just solved.
sblantipodi
Senior Developer
Senior Developer
 
Posts: 122
Joined: Fri Mar 26, 2010 1:41 pm

Top

Return to General

Who is online

Users browsing this forum: No registered users and 2 guests