Percentage is a struct that has no implicit cast from a number to percentage so you will need to do it yourself. Either "new Percentage(20)" or "(Percentage) 20". If you want the text on the middle of your page it might be easier to create an image with just the text and Composite that on top of your image. You could also change the alpha value for each pixel in the image so you can still see the text.
↧