"NewManLiving" wrote:
Apparently you can create an roRegion using the roScreen as its source bitmap, although the resolution/scaling is off.
"NewManLiving" wrote:
It also appears that roRegion exposes an ifDraw2d interface , resolving it perhaps by calling it's source objects ifDraw2d interface.
"NewManLiving" wrote:
I am particularly interested in creating regions right from the roScreen buffer which apparently works except for the scaling that is returned.
"NewManLiving" wrote:
After further investigation this phenomenon exists in conjunction with a compositor and sprites. Whatever the topmost ( or most recently created sprite. Don't know for sure yet) happens to be this call: region = CreateObject( "roRegion", roScreen, 0, 0, roScreen.GetWidth(), roScreen.GetHeight() ) will capture the sprite and scale it accordingly. If the sprite is small, say 100 * 100 it will stretch it across the display in both directions. In the case of my grid I was able to scale the region down to be the same size as the original and write it back to the screen. Of course this does not appear to be Kosher, but the bottom line is: It is doable and can help tremendously with animating areas of the screen without having to create additional overhead. I did try this with just an roScreen not using a compositor/sprite and the results were not the same
"NewManLiving" wrote:
but we do not have the 'official' blessing to use it
"NewManLiving" wrote:
It always makes me wonder what really is in the SDK that only the 'privy' know.
"RokuJoel" wrote:"NewManLiving" wrote:
but we do not have the 'official' blessing to use it
I believe this is the way it was intended, the screen itself is essentially an roBitmap, although specialized and you should be able to treat it as such for the most part."NewManLiving" wrote:
It always makes me wonder what really is in the SDK that only the 'privy' know.
1. Components and functions that have been build for internal use and have not been API reviewed.
2. ... or that engineering plans to revise significantly
3. Custom components, developed for specific business partners which we may or may not eventually release to developers - the general philosophy is that we will eventually release most, unless they fall under #2.
- Joel