I am putting together a POC for a presentation and I need to display an encoded value and then the decoded value on screen. Now I have the decoded workign nicely, however the encoded vale comes in as a string of about 1024 characters. Now I am using the below code and when I display it on the screen, it doesn't stay in the rect at all. I can move the x and y around and that works, but it doesnt even recognize the width and height values at all. Am I doing something wrong?
I believe the image canvas will only wrap text at non-word characters (e.g., space, hyphen, carriage return, etc.), so you'll probably need to add spaces into the string to get it to wrap, or implement your own wrapping.