/// <summary> /// This method pre-seeds the WuQuantizer in the AoT compiler for iOS. /// </summary> /// <typeparam name="TPixel">The pixel format.</typeparam> private static void AotCompileWuQuantizer <TPixel>() where TPixel : unmanaged, IPixel <TPixel> { using (var test = new WuQuantizer <TPixel>(Configuration.Default, new WuQuantizer().Options)) { var frame = new ImageFrame <TPixel>(Configuration.Default, 1, 1); test.QuantizeFrame(frame, frame.Bounds()); } }