MCPcopy Index your code
hub / github.com/K0lb3/UnityPy / parse_image_data

Function parse_image_data

UnityPy/export/Texture2DConverter.py:254–320  ·  view source on GitHub ↗

Converts the given image data bytes to PIL Image.

(
    image_data: Union[bytes, bytearray, memoryview],
    width: int,
    height: int,
    texture_format: Union[TextureFormat, int],
    version: Tuple[int, int, int, int],
    platform: Union[BuildTarget, int],
    platform_blob: Optional[List[int]] = None,
    flip: bool = True,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

get_image_from_texture2dFunction · 0.85

Calls 3

TextureFormatClass · 0.85
swap_bytes_for_xboxFunction · 0.85

Tested by

no test coverage detected