My Texture does not show up

Hi,

I am trying to program a portion of my GUI without having to use GUI Textures. Basically, I want to resize a texture on the fly. However, my texture keeps getting warped in an odd way and I have no idea why? Here is my code:

var emptyAnswerBox: Texture2D;

function Start (){
emptyAnswerBox.Resize(32, 16, TextureFormat.ARGB32, true);
}

There texture was designed in GIMP and works fine if I do not resize it. Here are the before and after pictures.

alt text

And after:

alt text

Texture2D.Resize() does not cleanly shrink/grow an image like you are expecting it to. In the docs it says that pixels become undefined after calling this function.

http://unity3d.com/support/documentation/ScriptReference/Texture2D.Resize.html

I would recommend using another option.