Player APIs (BrightScript & Ja...
...
Object Reference
Presentation and Widget Object...
roImageBuffer
5min
this object allows you to access decoded image file data you can then copy or manipulate that data object creation an roimagebuffer object is instantiated with an roimageplayer object and a string specifying the file path of an image file if an roimageplayer object is not needed, invalid can be substituted for it createobject("roimagebuffer", image player as object, file path as string) example imgbuffer = createobject("roimagebuffer", invalid, "sd /content/image png") ifimagebuffercontrol displaybuffer(x as integer, y as integer) as boolean displays the image on screen the x and y integers specify the coordinates of the top left corner of the image important the displaybuffer() method has been deprecated as of os8, the end point exists but does not perform any function getbufferbytearray() as robytearray returns the decoded image file data as an robytearray getbuffermetadata() as roassociativearray returns an associative array containing information about the image file the associative array contains the following keys width the width of the image file height the height of the image file acceptable a boolean integer value indicating whether the image can be displayed by the roimageplayer instance format the color space (argb/cmyk) of the image file convertformat(a as string) as object