zoom_pixels

package
v0.0.0-...-e1a33b0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var INTERNAL_PATH string = "app_data/"

docker directory

Functions

func GetImage

func GetImage() image.Image

return picture pixels value

func Is_Sort

func Is_Sort(p, q, r Pixel_Diff) (Pixel_Diff, Pixel_Diff)

func NewImage

func NewImage(p, q, r Pixel_Diff) (Pixel_Diff, Pixel_Diff, Pixel_Diff)

func SetImage

func SetImage(im image.Image)

Set image hold picture pixels values

func ZoomOutPixels

func ZoomOutPixels(file *os.File, level int)

Zoom Out Pixel is inverse process of image zoom in

func ZoomPicture

func ZoomPicture(file *os.File, newPicture *image.Paletted) error

Zoom Picture allow to create a new picture based on the given pixel values

func Zoom_KTime

func Zoom_KTime(value int, file *os.File) (*image.Paletted, error)

Types

type Pixel_Diff

type Pixel_Diff struct {
	// contains filtered or unexported fields
}

Pixel Difference hold rgba color values for an image

func Add

func Add(p Pixel_Diff) Pixel_Diff

Add is similar to substract and divsion operation

func Division

func Division(p Pixel_Diff) Pixel_Diff

Divsion is similar to Substraction

func InverseAddition

func InverseAddition(r, g, b, a uint32, r0, g0, b0, a0 uint32) Pixel_Diff

func InverseMultiplacate

func InverseMultiplacate(p Pixel_Diff) Pixel_Diff

func InverseSubstract

func InverseSubstract(p Pixel_Diff) Pixel_Diff

func Substract

func Substract(r, g, b, a uint32, r0, g0, b0, a0 uint32) Pixel_Diff

Substraction is not usually allowed on pixels values;because pixels values exist in vector form. In order to preserve, we use rgba color value

type Pixels_Info

type Pixels_Info struct {

	// Pixel value based on pixel coordinates
	Value color.Color
}

Pixels Info hold picture pixels coordinates {x, y}

Jump to

Keyboard shortcuts

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