Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
Showing results for 
Search instead for 
Did you mean: 
Level 7

A need for drawing bitmap with program-specified alpha

I need to be able to take multiple bitmaps and overlay them onto a new bitmap with a programmer-specified alpha value.

Is this capability already in BrightScript?

Two different ways to implement this in BrightScript that would be useful to me:
-- Add alpha value to the three Draw*Object() methods in ifDraw2D. ( The new alpha value would set a constant alpha for the entire image (i.e. replace) or would be combined with the existing alpha, programmers choice. I think for my use I would want "replace," but I'm not entirely sure yet.

-- Ability to SetByteArray to a bitmap ( It would also be helpful to me if this were paired with the ability to write png files from a bitmap (to provide images for roPosterScreen, for example).
0 Kudos