enum Opal::Image::Interpolation

Overview

Interpolation algorithm used when scaling pixel buffers.

Defined in:

opal/image/pixel_buffer.cr

Enum Members

Nearest = 0
Bilinear = 1

Constructors

Instance Method Summary

Constructor Detail

def self.from(val : Symbol | Interpolation) : Interpolation #

[View source]

Instance Method Detail

def bilinear? #

Returns true if this enum value equals Bilinear


[View source]
def nearest? #

Returns true if this enum value equals Nearest


[View source]