6.1-roImageBuffer
ON THIS PAGE
Object Creation: An roImageBuffer object is instantiated with an roImagePlayer object and a string specifying the file path of an image file.
CreateObject("roImageBuffer", image_player As Object, file_path As String)
Example
imgPlayer = CreateObject("roImagePlayer") imgBuffer = CreateObject("roImageBuffer", imgPlayer, "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.
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 fileheight
: The height of the image fileacceptable
: A Boolean integer value indicating whether the image can be displayed by the roImagePlayer instanceformat
: The color space (ARGB/CMYK) of the image file