Characters to image?

How would I go about converting the characters of a string into separate images? For example this string: "Hello". I'd like each letter in that string to be a separate image, if possible.
void GenerateImage(char str[256], int startX, int startY)
{
int i,j;
for(i=0;i<strlen(str);i++)
{
j=(int)str[i];
CreateActor("ImageActor", "Animation", "(none)", "(none)", startX+i*20, startY, true);
ImageActor.animpos=j-65;
}
}
GenerateImage("Hello", view.x+20, view.y+20);