io.github.humbleui.skija.SamplingMode Maven / Gradle / Ivy
package io.github.humbleui.skija;
import lombok.*;
import org.jetbrains.annotations.*;
/**
* @see io.github.humbleui.skija.FilterMipmap
* @see io.github.humbleui.skija.CubicResampler
*/
public interface SamplingMode {
public static final SamplingMode DEFAULT = new FilterMipmap(FilterMode.NEAREST, MipmapMode.NONE);
public static final SamplingMode LINEAR = new FilterMipmap(FilterMode.LINEAR, MipmapMode.NONE);
public static final SamplingMode MITCHELL = new CubicResampler(0.33333334f, 0.33333334f);
public static final SamplingMode CATMULL_ROM = new CubicResampler(0, 0.5f);
// 10 + 30-bit float + 32-bit float: CubicResampler
// 01 + 30-bit zeros + 32-bit int: SamplingModeAnisotropic
// 00 + 30-bit int + 32-bit int: FilterMipmap
@ApiStatus.Internal long _pack();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy