Skia
2D Graphics Library
SkSamplingOptions Struct Reference

#include <SkSamplingOptions.h>

Public Member Functions

constexpr SkSamplingOptions ()=default
 
 SkSamplingOptions (const SkSamplingOptions &)=default
 
SkSamplingOptionsoperator= (const SkSamplingOptions &that)
 
constexpr SkSamplingOptions (SkFilterMode fm, SkMipmapMode mm)
 
constexpr SkSamplingOptions (SkFilterMode fm)
 
constexpr SkSamplingOptions (const SkCubicResampler &c)
 
bool operator== (const SkSamplingOptions &other) const
 
bool operator!= (const SkSamplingOptions &other) const
 
bool isAniso () const
 

Static Public Member Functions

static constexpr SkSamplingOptions Aniso (int maxAniso)
 

Public Attributes

const int maxAniso = 0
 
const bool useCubic = false
 
const SkCubicResampler cubic = {0, 0}
 
const SkFilterMode filter = SkFilterMode::kNearest
 
const SkMipmapMode mipmap = SkMipmapMode::kNone
 

Constructor & Destructor Documentation

◆ SkSamplingOptions() [1/5]

constexpr SkSamplingOptions::SkSamplingOptions ( )
constexprdefault

◆ SkSamplingOptions() [2/5]

SkSamplingOptions::SkSamplingOptions ( const SkSamplingOptions )
default

◆ SkSamplingOptions() [3/5]

constexpr SkSamplingOptions::SkSamplingOptions ( SkFilterMode  fm,
SkMipmapMode  mm 
)
inlineconstexpr

◆ SkSamplingOptions() [4/5]

constexpr SkSamplingOptions::SkSamplingOptions ( SkFilterMode  fm)
inlineconstexpr

◆ SkSamplingOptions() [5/5]

constexpr SkSamplingOptions::SkSamplingOptions ( const SkCubicResampler c)
inlineconstexpr

Member Function Documentation

◆ Aniso()

static constexpr SkSamplingOptions SkSamplingOptions::Aniso ( int  maxAniso)
inlinestaticconstexpr

◆ isAniso()

bool SkSamplingOptions::isAniso ( ) const
inline

◆ operator!=()

bool SkSamplingOptions::operator!= ( const SkSamplingOptions other) const
inline

◆ operator=()

SkSamplingOptions& SkSamplingOptions::operator= ( const SkSamplingOptions that)
inline

◆ operator==()

bool SkSamplingOptions::operator== ( const SkSamplingOptions other) const
inline

Member Data Documentation

◆ cubic

const SkCubicResampler SkSamplingOptions::cubic = {0, 0}

◆ filter

const SkFilterMode SkSamplingOptions::filter = SkFilterMode::kNearest

◆ maxAniso

const int SkSamplingOptions::maxAniso = 0

◆ mipmap

const SkMipmapMode SkSamplingOptions::mipmap = SkMipmapMode::kNone

◆ useCubic

const bool SkSamplingOptions::useCubic = false

The documentation for this struct was generated from the following file: