Library/ManagedCuda/NPP/NPPImage_8uC4.cs
/// <summary>
/// complement color key replacement of source image 1 by source image 2 with alpha blending.
/// </summary>
/// <param name="alpha1">source1 image alpha opacity (0 - max channel pixel value).</param>
/// <param name="src2">source2 packed pixel format image.</param>
/// <param name="alpha2">source2 image alpha opacity (0 - max channel pixel value).</param>
/// <param name="dest">Destination image</param>
/// <param name="colorKeyConst">color key constants</param>
/// <param name="nppAlphaOp">NppiAlphaOp alpha compositing operation selector  (excluding premul ops).</param>
complement color key replacement of source image 1 by source image 2 with alpha blending.
complement color key replacement of source image 1 by source image 2 with alpha blending .
public void AlphaCompColorKeyA(byte alpha1, NPPImage_8uC4 src2, byte alpha2, NPPImage_8uC4 dest, byte[] colorKeyConst, NppiAlphaOp nppAlphaOp)
		{
			status = NPPNativeMethods.NPPi.CompColorKey.nppiAlphaCompColorKey_8u_AC4R(_devPtrRoi, _pitch, alpha1, src2.DevicePointerRoi, src2.Pitch, alpha2, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, colorKeyConst, nppAlphaOp);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiCompColorKey_8u_C4R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void AlphaCompColorKeyA ( byte alpha1 , NPPImage_8uC4 src2 , byte alpha2 , NPPImage_8uC4 dest , byte [ ] colorKeyConst , NppiAlphaOp nppAlphaOp ) { status = NPPNativeMethods . NPPi . CompColorKey . nppiAlphaCompColorKey_8u_AC4R ( _devPtrRoi , _pitch , alpha1 , src2 . DevicePointerRoi , src2 . Pitch , alpha2 , dest . DevicePointerRoi , dest . Pitch , _sizeRoi , colorKeyConst , nppAlphaOp ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
complement color key replacement of source image 1 by source image 2 with alpha blending.
complement color key replacement of source image 1 by source image 2 with alpha blending .
alpha1
byte
source1 image alpha opacity (0 - max channel pixel value).
source1 image alpha opacity ( 0 - max channel pixel value ) .
src2
NPPImage_8uC4
source2 packed pixel format image.
source2 packed pixel format image .
alpha2
byte
source2 image alpha opacity (0 - max channel pixel value).
source2 image alpha opacity ( 0 - max channel pixel value ) .
dest
NPPImage_8uC4
None
colorKeyConst
byte[]
color key constants
color key constants
nppAlphaOp
NppiAlphaOp
NppiAlphaOp alpha compositing operation selector  (excluding premul ops).
NppiAlphaOp alpha compositing operation selector ( excluding premul ops ) .