Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Here's one way to do it:

debMap.data.assign(vi, vi + height * width);

Cribbed from this answer on StackOverflow.