You are looking for the GetWritablePixels method of MagickImage. You will get a copy of the buffer in memory and not a pointer to the actual data. You might also want to took a look at the Evaluate method to modify the pixels.
↧