ByteImageProvider
- class omni.ui.ByteImageProvider
Bases:
ImageProvider
doc
Methods
__init__
(*args, **kwargs)Overloaded function.
set_bytes_data
(self, bytes, sizes, format, ...)Sets Python sequence as byte data.
set_bytes_data_from_gpu
(self, gpu_bytes, ...)Sets byte data from a copy of gpu memory at gpuBytes.
set_data
(self, arg0, arg1)[DEPRECATED FUNCTION]
set_data_array
(self, arg0, arg1)set_raw_bytes_data
(self, raw_bytes, sizes, ...)Sets byte data that the image provider will turn raw pointer array into an image.
Attributes
- __init__(*args, **kwargs)
Overloaded function.
__init__(self: omni.ui._ui.ByteImageProvider) -> None
doc
__init__(self: omni.ui._ui.ByteImageProvider, bytes: sequence, sizes: List[int], format: omni.gpu_foundation_factory._gpu_foundation_factory.TextureFormat = <TextureFormat.???: 0>, stride: int = -1) -> None
doc
- set_bytes_data(self: omni.ui._ui.ByteImageProvider, bytes: sequence, sizes: List[int], format: omni.gpu_foundation_factory._gpu_foundation_factory.TextureFormat = <TextureFormat.???: 0>, stride: int = -1) None
Sets Python sequence as byte data. The image provider will recognize flattened color values, or sequence within sequence and convert it into an image.
- set_bytes_data_from_gpu(self: omni.ui._ui.ByteImageProvider, gpu_bytes: int, sizes: List[int], format: omni.gpu_foundation_factory._gpu_foundation_factory.TextureFormat = <TextureFormat.RGBA8_UNORM: 11>, stride: int = -1) None
Sets byte data from a copy of gpu memory at gpuBytes.
- set_data(self: omni.ui._ui.ByteImageProvider, arg0: List[int], arg1: List[int]) None
[DEPRECATED FUNCTION]
- set_data_array(self: omni.ui._ui.ByteImageProvider, arg0: numpy.ndarray[numpy.uint8], arg1: List[int]) None
- set_raw_bytes_data(self: omni.ui._ui.ByteImageProvider, raw_bytes: capsule, sizes: List[int], format: omni.gpu_foundation_factory._gpu_foundation_factory.TextureFormat = <TextureFormat.RGBA8_UNORM: 11>, stride: int = -1) None
Sets byte data that the image provider will turn raw pointer array into an image.