png - Create a RGB 565 image from python array -


i've got numpy array represents bunch of rgb values. i'd save them rgb 565 png image, i'll use three.js texture. how can using python?

do need write out appropriate 16-bit greyscale image? i.e., convert r, g , b values 5, 6 , 5 bit numbers , add them binary? there better way of doing it? i'v been using pypng far write 8 bit rgb pngs.


Comments

Popular posts from this blog

html - height not adding height to a empty div -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

python - Robot Framework location and name of keyword -