So, I load a PNG file with Noesis, and I try to export it to my own format
The next code is launched.
Code: Select all
def fmtWriteRGBA(data, width, height, bsOut): datasize = len(data) print(datasize) image = rapi.imageEncodeRaw(data, width, height, "r8g8b8a8") datasize = len(image) print(datasize) bsOut = NoeBitStream(image) return 1
bsOut = NoeBitStream(image) or bsOut = NoeBitStream(data)
noesis generates a 0bytes file with of course 0 len.
How can I export this PNG file?