Skia.SamplingOptions (Skia v0.1.0)

Copy Markdown View Source

Image sampling options for image drawing and image shaders.

Summary

Types

cubic()

@type cubic() :: :mitchell | :catmull_rom | {number(), number()}

t()

@type t() :: %Skia.SamplingOptions{
  cubic: cubic() | nil,
  filter: atom(),
  max_aniso: pos_integer() | nil,
  mipmap: atom()
}

Functions

aniso(max_aniso)

@spec aniso(pos_integer()) :: t()

cubic(cubic)

@spec cubic(cubic()) :: t()

linear()

@spec linear() :: t()

mipmap(filter \\ :linear, mipmap \\ :linear)

@spec mipmap(atom(), atom()) :: t()

nearest()

@spec nearest() :: t()

new(opts \\ [])

@spec new(keyword()) :: t()