Home > Back-end >  The color of the deployment headaches in how to make the label text and transparency is random
The color of the deployment headaches in how to make the label text and transparency is random

Time:09-26

I wrote this: label1. SetTextFill ((int) (Math. The random () * 256), (int) (Math. The random () * 256), (int) (Math. The random () * 256), (int) (Math. The random () * 101)); But I mistake The eclipse suggests method setTextFill (Paint) in The type Labeled is not applicable for The arguments (int, int, int, int), The old man is this why?

CodePudding user response:

There is no this way

Your husband into a monochromatic image (random color), and then fill the picture
  • Related