S sarkis Member Licensed User Longtime User Mar 2, 2012 #1 Hello How to compare objects color? Thanks for answer.
joseluis Active Member Licensed User Longtime User Mar 2, 2012 #2 I'm not sure of what you want. Do you want to check if two Views has the same color? B4X: If Label.TextColor == Button.TextColor Then ' stuff... End if If not, please explain a little bit more what you want to do. Upvote 0
I'm not sure of what you want. Do you want to check if two Views has the same color? B4X: If Label.TextColor == Button.TextColor Then ' stuff... End if If not, please explain a little bit more what you want to do.
S sarkis Member Licensed User Longtime User Mar 2, 2012 #3 Thanks for replying. I nett to know what the particular color is , like if someobject.color ==color.red Upvote 0
Thanks for replying. I nett to know what the particular color is , like if someobject.color ==color.red
S susu Well-Known Member Licensed User Longtime User Mar 2, 2012 #4 If you want to compare colors of two bitmaps. You can use GetPixel Basic4android - Drawing (Core) Upvote 0
S sarkis Member Licensed User Longtime User Mar 2, 2012 #5 I have panels of different colors. I need to know what color is particular object. Simply , how can I keep objects colors? Upvote 0
I have panels of different colors. I need to know what color is particular object. Simply , how can I keep objects colors?
S sarkis Member Licensed User Longtime User Mar 2, 2012 #6 particularly you cannot write If Label.TextColor == Button.TextColor Then ' stuff... End if as color is write only Upvote 0
particularly you cannot write If Label.TextColor == Button.TextColor Then ' stuff... End if as color is write only
K kickaha Well-Known Member Licensed User Longtime User Mar 2, 2012 #7 You could store the colour in the Tag of each label when you set it, that way you have a readable copy of the colour. Upvote 0
You could store the colour in the Tag of each label when you set it, that way you have a readable copy of the colour.
joseluis Active Member Licensed User Longtime User Mar 2, 2012 #8 sarkis said: as color is write only Click to expand... My bad, I didn't remember that. You can store it in the object's tag, as kickaha says. You can store in the Tag any object you want. Upvote 0
sarkis said: as color is write only Click to expand... My bad, I didn't remember that. You can store it in the object's tag, as kickaha says. You can store in the Tag any object you want.