Draw image from array in Swift -


i have 2d array of rgb values (assume nscolor objects or raw rgb 3-tuples of doubles), 1 each "pixel" of image want draw. produce data expensive can't keep running function often. data shouldn't changing @ unless add manual function so. how draw in nsview?

for such simple question getting swamped different answers on internet aren't quite doing want. started learning how years ago in obj-c. need more efficient way move on project.

i guess subclass nsview , assign class view in ib. now?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -