- Home /
Can i use ReadAllBytes instead of GetPixels?
I am creating a texture editor for many textures, and i wish to read them without setting all the textures to IsReadeable.
Can i get a color Vector[4] using ReadAllBytes instead of GetPixels?
i've found out that this is the same as reading byte 1 2 3 for every pixel in an rgb format image.
i worked around it by enabling is readeable in game.
Answer by frogsbo · Sep 05, 2014 at 12:40 PM
It's difficult, you have to have certain image formats, so if you know all about the image formats to run to code on it's easier, then you need an rgba format image and read the r g b byte 1 2 and 3 in series, based on code examples online
Your answer
Follow this Question
Related Questions
Writing to files in bytes. 1 Answer
wwwform send an array the right way! 0 Answers
Coordinate of matching pixel on texture 2 Answers
How faster load texture from bytes? (Android) 0 Answers
Loading Asset Bundle from raw bytes 1 Answer