decode

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package decode wraps stb_image via CGo for fast multi-format image decoding. Supported: JPEG, PNG, BMP, GIF, TGA, PSD, HDR, PNM.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(data []byte) (*image.NRGBA, error)

Bytes decodes raw image bytes into an NRGBA image. Output is always 4-channel RGBA, regardless of source format.

func File

func File(path string) (*image.NRGBA, error)

File decodes the image at path into an NRGBA image.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL