How set rect transform left and right?

Code: ProfileFill.GetComponent ().sizeDelta = new Vector2 (100, 100);

I want get this

But I get this

Because I know PHP, I write little script and import page as texture in game.

PHP code: Progress Bar on PHP - Pastebin.com

Ex. of use: http://site.com/bar.php?width=400&height=20&bg=000&fill=f0f0f0&progress=40

It make image 400x20, fill 40% gray (f0f0f0) and 60% black (000)