Your Digital Media Has Never Looked So Good

 
anilk1797
Topic Author
Posts: 15
Joined: Wed Jun 08, 2016 12:19 am

How to set rounded corner on rectangle node

Tue Jul 05, 2016 2:58 am

Hello,

I am using rectangle node of scene graph. I want to set rounded corners on rectangle so please suggest me.

Xml code is:

<Rectangle
   id="showHide"
   color="#451bc1"
   visible="false"
   width="500"
   height="100"
   translation="[150,600]" />
 
Techie
Posts: 5
Joined: Tue Mar 07, 2017 12:45 pm

Re: How to set rounded corner on rectangle node

Wed Apr 26, 2017 4:48 pm

Were you able to get it working?
 
destruk
Posts: 2584
Joined: Sat Dec 18, 2010 4:58 pm

Re: How to set rounded corner on rectangle node

Wed Apr 26, 2017 6:59 pm

Maybe overlay a png graphic as the background of the rectangle?
 
vjani
Posts: 18
Joined: Thu May 28, 2015 5:56 pm

Re: How to set rounded corner on rectangle node

Fri Jan 19, 2018 6:05 pm

Was anyone able to do this? Need this feature as well.
 
User avatar
rovidx_media
Posts: 95
Joined: Mon Apr 24, 2017 4:03 pm

Re: How to set rounded corner on rectangle node

Fri Jan 19, 2018 6:43 pm

I was able to achieve this by using the poster node instead with a transparent PNG that had rounded corners, but it was a bit clunky with 24bit PNG's.   Worked great with 8bit, but the edges where jagged.
Use Wordpress to power your Roku Direct Publisher -> https://rovidx.com
 
joetesta
Posts: 711
Joined: Wed Apr 20, 2011 11:48 am

Re: How to set rounded corner on rectangle node

Fri Jan 19, 2018 7:03 pm

far as i know the best way to do this is with a "9 patch" image on a poster node instead of trying to do some kind of radius on a rectangle
aspiring
 
vjani
Posts: 18
Joined: Thu May 28, 2015 5:56 pm

Re: How to set rounded corner on rectangle node

Fri Jan 19, 2018 7:18 pm

Thanks @joetesta, actually the requirement is to have the RowList items with rounded corners. So, do you mean I should create a 9patch image with transparent cutout area with rounded corners[where the cell content will fill] and background color(for negative space) matching the background of the screen(say black)? something like this? https://stackoverflow.com/questions/11224464/rounded-inner-corners-with-transparent-inside-frame 
 
joetesta
Posts: 711
Joined: Wed Apr 20, 2011 11:48 am

Re: How to set rounded corner on rectangle node

Sun Jan 21, 2018 8:25 am

vjani wrote:
Thanks @joetesta, actually the requirement is to have the RowList items with rounded corners. So, do you mean I should create a 9patch image with transparent cutout area with rounded corners[where the cell content will fill] and background color(for negative space) matching the background of the screen(say black)? something like this? https://stackoverflow.com/questions/11224464/rounded-inner-corners-with-transparent-inside-frame 

I believe that is correct. Unfortunately the Roku documentation mentions 9-patch only in passing https://sdkdocs.roku.com/display/sdkdoc/Poster
And I'm no expert but know that 9-patch images do work on roku, you'll probably have to experiment a little.
aspiring
 
norcaljohnny
Posts: 37
Joined: Thu Apr 13, 2017 11:00 pm

Re: How to set rounded corner on rectangle node

Fri Feb 02, 2018 9:14 pm

joetesta wrote:
vjani wrote:
Thanks @joetesta, actually the requirement is to have the RowList items with rounded corners. So, do you mean I should create a 9patch image with transparent cutout area with rounded corners[where the cell content will fill] and background color(for negative space) matching the background of the screen(say black)? something like this? https://stackoverflow.com/questions/11224464/rounded-inner-corners-with-transparent-inside-frame 

I believe that is correct. Unfortunately the Roku documentation mentions 9-patch only in passing https://sdkdocs.roku.com/display/sdkdoc/Poster
And I'm no expert but know that 9-patch images do work on roku, you'll probably have to experiment a little.

Sadly, per Roku docs... Unlike other bitmaps, the MaskGroup node class does not work with 9-patch images.

Who is online

Users browsing this forum: No registered users and 5 guests