module

GS::Utils::ImageIO

Image loader using macOS ImageIO

Constants

POSIX_PATH_STYLE = 0

kCFURLPOSIXPathStyle

RGBA_BITMAP_INFO = 1_u32 | (2_u32 << 12)

kCGImageAlphaPremultipliedLast | kCGBitmapByteOrder32Big

UTF8_ENCODING = 134217984_u32

kCFStringEncodingUTF8

Class methods

load(path : String) : Image

Load image from file path

Source
load_from_bytes(bytes : Bytes) : Image

Load image from bytes

Source
load_resized(path : String, target_width : Int32, target_height : Int32) : Image

Load and resize image

Source
resize(img : Image, new_width : Int32, new_height : Int32) : Image

Resize image using bilinear interpolation

Source