
bbrouse
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2016
08:05 AM
Is it possible to crop/cut off a poster node?
I want to include a star rating on one of my scene graph scenes. My plan is to have an image of all 5 stars in a row and crop the image so it only shows the number of stars that match a rating of a given show (including cases with half stars).
Is there a reasonable way to set the rendered width/height of a given poster node? It looks like setting the width/height of a poster node will scale the image.
Is there a reasonable way to set the rendered width/height of a given poster node? It looks like setting the width/height of a poster node will scale the image.
2 REPLIES 2

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2016
05:05 PM
Re: Is it possible to crop/cut off a poster node?
I would imagine the easiest would be to have an opaque rectangle layer on top of the star ratings and shrink it to allow more stars to show through. Or have single-star sized poster notes and add a node for each star you want to display. Or, have a full sized node and (assuming the stars are from a "wingdings" style font) expand or contract the length of the string.
- Joel
- Joel

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2016
01:47 PM
Re: Is it possible to crop/cut off a poster node?
Any chance there's some undocumented support for cropping posters.. something along the lines of SourceRect for roImageCanvas and roRegion for roBitmaps?? Anything like that in SceneGraph?
I suppose you could use a MaskGroup, but that would only work on OpenGL-enabled boxes, so it's not of much use...
I suppose you could use a MaskGroup, but that would only work on OpenGL-enabled boxes, so it's not of much use...
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)