 
 extension Image.ResamplingAlgorithm {
     
-    func calculate<ColorPixel: ColorPixelProtocol>(source: [ColorPixel], width: Int, height: Int, point: Point) -> ColorPixel where ColorPixel.Model : ColorBlendProtocol {
+    func calculate<ColorPixel: ColorPixelProtocol>(source: UnsafePointer<ColorPixel>, width: Int, height: Int, point: Point) -> ColorPixel where ColorPixel.Model : ColorBlendProtocol {
         switch self {
         case .none:
             

            let s_height = buffer.count / s_width
            let _transform = transform.inverse
            
            for i in 0..<result.count {
                result[i] = algorithm.calculate(source: buffer, width: s_width, height: s_height, point: Point(x: i % width, y: i / width) * _transform)
            }
        }
        return ImageBase(buffer: result, colorSpace: self.colorSpace, algorithm: self.algorithm)

            var s_alpha: Double = 0
            var t: Double = 0
            
            let _x = Int(point.x)
            let _y = Int(point.y)
            
            let min_x = (_x - a + 1).clamped(to: 0..<width)
            let max_x = (_x + a + 1).clamped(to: 0..<width)
