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
Post a Comment