LoadImageFromBuffer
Loads a single image from a file stored in memory.
Applications:Use this filter when you received an image file through I/O communication, e.g. through a TcpIp connection.
Syntax
C++
Python
def LoadImageFromBuffer( inBuffer: ByteBuffer, outImage: Image, /, *, inOffset: int = 0, inLength: int | None = None, inLoadAlphaChannel: bool = False ) -> None
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inBuffer | ByteBuffer | Source buffer containing image file data | |
![]() |
inOffset | int | 0 | Image data start position in source buffer |
![]() |
inLength | int | None | None | Image data length in source buffer |
![]() |
inLoadAlphaChannel | bool | False | Whether to load the alpha channel (if exists) as an additional image channel |
![]() |
outImage | Image | Output image |


