Documentation ¶
Index ¶
- Variables
- func GetImage() image.Image
- func Is_Sort(p, q, r Pixel_Diff) (Pixel_Diff, Pixel_Diff)
- func NewImage(p, q, r Pixel_Diff) (Pixel_Diff, Pixel_Diff, Pixel_Diff)
- func SetImage(im image.Image)
- func ZoomOutPixels(file *os.File, level int)
- func ZoomPicture(file *os.File, newPicture *image.Paletted) error
- func Zoom_KTime(value int, file *os.File) (*image.Paletted, error)
- type Pixel_Diff
- func Add(p Pixel_Diff) Pixel_Diff
- func Division(p Pixel_Diff) Pixel_Diff
- func InverseAddition(r, g, b, a uint32, r0, g0, b0, a0 uint32) Pixel_Diff
- func InverseMultiplacate(p Pixel_Diff) Pixel_Diff
- func InverseSubstract(p Pixel_Diff) Pixel_Diff
- func Substract(r, g, b, a uint32, r0, g0, b0, a0 uint32) Pixel_Diff
- type Pixels_Info
Constants ¶
This section is empty.
Variables ¶
View Source
var INTERNAL_PATH string = "app_data/"
docker directory
Functions ¶
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 ZoomOutPixels ¶
Zoom Out Pixel is inverse process of image zoom in
func ZoomPicture ¶
Zoom Picture allow to create a new picture based on the given pixel values
Types ¶
type Pixel_Diff ¶
type Pixel_Diff struct {
// contains filtered or unexported fields
}
Pixel Difference hold rgba color values for an image
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 ¶
Pixels Info hold picture pixels coordinates {x, y}
Click to show internal directories.
Click to hide internal directories.