/// <summary> /// Mirror image. /// </summary> /// <param name="flip">Specifies the axis about which the image is to be mirrored.</param> public void Mirror(NppiAxis flip) { status = NPPNativeMethods.NPPi.GeometricTransforms.nppiMirror_32s_C4IR(_devPtrRoi, _pitch, _sizeRoi, flip); Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiMirror_32s_C4IR", status)); NPPException.CheckNppStatus(status, this); }
/// <summary> /// Mirror image. Not affecting Alpha. /// </summary> /// <param name="dest">Destination image</param> /// <param name="flip">Specifies the axis about which the image is to be mirrored.</param> public void MirrorA(NPPImage_32sC4 dest, NppiAxis flip) { status = NPPNativeMethods.NPPi.GeometricTransforms.nppiMirror_32s_AC4R(_devPtrRoi, _pitch, dest.DevicePointerRoi, dest.Pitch, dest.SizeRoi, flip); Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiMirror_32s_AC4R", status)); NPPException.CheckNppStatus(status, this); }