murphesi
12 years agoNewbie
roImageCanvas TargetRotation issue with Text being cut off
I am having an issue with rotating text -90 degrees so I can have a vertical display. When I rotate text -90 degrees it seems that the text container is not rotating with the text, thus causing the text to be cut off at around the height that the text would be if it was not rotated. I am instantiating an roImageCanvas object and setting a layer via SetLayer(1, Content-Meta) and using TargetTranslation and TargetRotation to achieve this. Note that I have successfully rotated graphics this way with no issue.
Here is a sample of the code to show the standard text and rotated.
Roku 2XS 3100X
Here is a sample of the code to show the standard text and rotated.
canvas = CreateObject("roImageCanvas")
canvas.Show()
' regular text
canvas.SetLayer( 1, { Text: "My Text", TargetRect: { x:0, y:0, w:400, h:50 } } )
' rotated text
canvas.SetLayer( 3, { Text: "My Text", TargetRect: { x:0, y:0, w:400, h:50 }, TargetTranslation: { x:0, y:400 }, TargetRotation: -90.0 } )
Roku 2XS 3100X