def copy_bits(self, dest):
    'copies the bits of the image to the provided destination address'
    desc = _NuiSurfaceDesc()
    PlanarImage._GetLevelDesc(self, 0, ctypes.byref(desc))
    rect = _NuiLockedRect()
    PlanarImage._LockRect(self, 0, ctypes.byref(rect), None, 0)
    ctypes.memmove(dest, rect.bits, (desc.height * rect.pitch))
    PlanarImage._UnlockRect(self, 0)
copies the bits of the image to the provided destination address
def copy_bits(self, dest):
    
    desc = _NuiSurfaceDesc()
    PlanarImage._GetLevelDesc(self, 0, ctypes.byref(desc))
    rect = _NuiLockedRect()
    PlanarImage._LockRect(self, 0, ctypes.byref(rect), None, 0)
    ctypes.memmove(dest, rect.bits, (desc.height * rect.pitch))
    PlanarImage._UnlockRect(self, 0)