Пример #1
0
 public MPSImageConversion(IMTLDevice device, MPSAlphaType srcAlpha, MPSAlphaType destAlpha, nfloat[] backgroundColor, CGColorConversionInfo conversionInfo)
     : base(NSObjectFlag.Empty)
 {
     unsafe {
         fixed(nfloat *ptr = backgroundColor)
         InitializeHandle(InitWithDevice(device, srcAlpha, destAlpha, (IntPtr)ptr, conversionInfo), "initWithDevice:srcAlpha:destAlpha:backgroundColor:conversionInfo:");
     }
 }
Пример #2
0
 public MPSImageConversion(IMTLDevice device, MPSAlphaType srcAlpha, MPSAlphaType destAlpha, nfloat[] backgroundColor, CGColorConversionInfo conversionInfo)
     : this(device, srcAlpha, destAlpha, MPSKernel.GetPtr(backgroundColor, false), conversionInfo)
 {
 }