models

package
v0.0.0-...-acf0ccd Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageDetail

type ImageDetail struct {
	Id       string // optional Id
	FilePath string // complete path
	Filename string // just file
	Format   string
	Size     int64
	Width    int
	Height   int
	// these are the average values of colours
	// to help find similar imagess
	Red   int
	Blue  int
	Green int
}

type ImageTile

type ImageTile struct {
	X               int
	Y               int
	Rect            image.Rectangle
	ProminentColour color.RGBA
	// SimilarImages used in 'matched' mosaic image
	SimilarImages *[]ImageDetail //
	// ThumbnailImage used in 'tinted' mosaic image
	ThumbnailImage *ImageDetail // Image that will be render in the tile
}

Jump to

Keyboard shortcuts

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