RasterResampling

public enum RasterResampling : String, Codable, CaseIterable

The resampling/interpolation method to use for overscaling, also known as texture magnification filter

  • (Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled

    Declaration

    Swift

    case linear = "linear"
  • Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled

    Declaration

    Swift

    case nearest = "nearest"