Versions in this module Expand all Collapse all v1 v1.0.4 Aug 20, 2023 v1.0.3 May 28, 2023 v1.0.2 Jul 13, 2022 v1.0.1 Jun 24, 2022 v1.0.0 Apr 17, 2022 Changes in this version + const AllDirection + const Horizontal + const Oblique + const Vertical + var DownDirAdd = PixelDirectionAdd + var LeftDirAdd = PixelDirectionAdd + var LeftDownDirAdd = PixelDirectionAdd + var LeftUpDirAdd = PixelDirectionAdd + var RightDirAdd = PixelDirectionAdd + var RightDownDirAdd = PixelDirectionAdd + var RightUpDirAdd = PixelDirectionAdd + var UpDirAdd = PixelDirectionAdd + func BlendSourceNormal(destinationImg draw.Image, sourceColor color.Color) + func Copy2PixelImage(src image.Image, dst *PixelImage) + func Copy2PixelImage64(src image.Image, dst *PixelImage64) + func CopyImage(srcImg image.Image) draw.Image + func CopyImageStruct(srcImg image.Image) draw.Image + func CopyImageTo(srcImg image.Image, dstImg draw.Image) + func CopyPixel2Image(src *PixelImage, dst draw.Image) + func CopyPixel642Image(src *PixelImage64, dst draw.Image) + func FillImage(img draw.Image, color color.Color) + func FillImageAt(img draw.Image, color color.Color, rect image.Rectangle) + func ForEachLoc(img image.Image, eachFunc func(x, y int)) + func LoadImage(fullPath string, format formatx.ImageFormat) (img image.Image, imgFormat string, err error) + func NewGray(rect image.Rectangle, grayY uint8) *image.Gray + func NewGray16(rect image.Rectangle, grayY uint16) *image.Gray16 + func NewNRGBA(rect image.Rectangle, defaultColor color.Color) *image.NRGBA + func NewNRGBA64(rect image.Rectangle, defaultColor color.Color) *image.NRGBA64 + func NewRGBA(rect image.Rectangle, defaultColor color.Color) *image.RGBA + func NewRGBA64(rect image.Rectangle, cdefaultColor color.Color) *image.RGBA64 + func SaveImage(img image.Image, fullPath string, format formatx.ImageFormat, ...) error + func SprintImage(img image.Image) string + func XCopyImage(srcImg image.Image) draw.Image + func XCopyImageTo(srcImg image.Image, dstImg draw.Image) + type ARGB64ChanImage struct + func (p *ARGB64ChanImage) ARGB64At(x, y int) (A, R, G, B uint16) + func (p *ARGB64ChanImage) Pixel64At(x, y int) (pixel uint64) + func (p *ARGB64ChanImage) SetARGB64(x, y int, A, R, G, B uint16) + func (p *ARGB64ChanImage) SetPixel64(x, y int, pixel uint64) + type ARGBChanImage struct + func (p *ARGBChanImage) ARGBAt(x, y int) (A, R, G, B uint8) + func (p *ARGBChanImage) PixelAt(x, y int) (pixel uint32) + func (p *ARGBChanImage) SetARGB(x, y int, A, R, G, B uint8) + func (p *ARGBChanImage) SetPixel(x, y int, pixel uint32) + type Gray16ChanImage struct + func (p *Gray16ChanImage) Gray16At(x, y int) uint16 + func (p *Gray16ChanImage) SetGray16(x, y int, gray uint16) + type GrayChanImage struct + func (p *GrayChanImage) GrayAt(x, y int) uint8 + func (p *GrayChanImage) SetGray(x, y int, gray uint8) + type IPixelChanImage interface + Max func() (maxX, maxY int) + NumberChanel func() int + type Pixel64ChanImage struct + C []uint16 + Height int + NumChan int + Width int + func (p *Pixel64ChanImage) ChanValueAt(x, y int, chanNum int) uint16 + func (p *Pixel64ChanImage) ChanValuesAt(x, y int) []uint16 + func (p *Pixel64ChanImage) Max() (maxX, maxY int) + func (p *Pixel64ChanImage) NumberChanel() int + func (p *Pixel64ChanImage) PixelAt(x, y int) uint32 + func (p *Pixel64ChanImage) SetChanValue(x, y int, chanNum int, value uint16) + func (p *Pixel64ChanImage) SetChanValues(x, y int, value ...uint16) + type PixelChanImage struct + C []uint8 + Height int + NumChan int + Width int + func (p *PixelChanImage) ChanValueAt(x, y int, chanNum int) uint8 + func (p *PixelChanImage) ChanValuesAt(x, y int) []uint8 + func (p *PixelChanImage) Max() (maxX, maxY int) + func (p *PixelChanImage) NumberChanel() int + func (p *PixelChanImage) PixelAt(x, y int) uint32 + func (p *PixelChanImage) SetChanValue(x, y int, chanNum int, value uint8) + func (p *PixelChanImage) SetChanValues(x, y int, value ...uint8) + type PixelDirection int + const Down + const Left + const LeftDown + const LeftUp + const Right + const RightDown + const RightUp + const Up + func DecomposeDirection(directions PixelDirection) []PixelDirection + func (d PixelDirection) IncludeDirection(direction PixelDirection) bool + func (d PixelDirection) IsMulti() bool + func (d PixelDirection) IsNone() bool + func (d PixelDirection) IsSingle() bool + func (d PixelDirection) Name() string + func (d PixelDirection) ReverseDirection() PixelDirection + func (d PixelDirection) String() string + type PixelDirectionAdd struct + X int + Y int + func GetPixelDirectionAdd(direction PixelDirection) (PixelDirectionAdd, error) + func GetPixelDirectionAdds(directions PixelDirection) []PixelDirectionAdd + type PixelImage struct + Height int + Pix []uint32 + Width int + func NewPixelImage(width, height int, pixel uint32) *PixelImage + func (i *PixelImage) At(x, y int) uint32 + func (i *PixelImage) ForEachPixel(eachFunc func(x, y int)) + func (i *PixelImage) IndexAt(index int) uint32 + func (i *PixelImage) IndexSet(index int, pixel uint32) + func (i *PixelImage) IndexSetPixel(index int, pixel graphicx.Pixel) + func (i *PixelImage) Max() (maxX, maxY int) + func (i *PixelImage) PixelAt(x, y int) graphicx.Pixel + func (i *PixelImage) PixelIndexAt(index int) graphicx.Pixel + func (i *PixelImage) Set(x, y int, pixel uint32) + func (i *PixelImage) SetPixel(x, y int, pixel graphicx.Pixel) + type PixelImage64 struct + Height int + Pix []uint64 + Width int + func NewPixelImage64(width, height int, pixel uint64) *PixelImage64 + func (i *PixelImage64) At(x, y int) uint64 + func (i *PixelImage64) ForEachPixel(eachFunc func(x, y int)) + func (i *PixelImage64) IndexAt(index int) uint64 + func (i *PixelImage64) IndexSet(index int, pixel uint64) + func (i *PixelImage64) IndexSetPixel(index int, pixel graphicx.Pixel64) + func (i *PixelImage64) Max() (maxX, maxY int) + func (i *PixelImage64) PixelAt(x, y int) graphicx.Pixel64 + func (i *PixelImage64) PixelIndexAt(index int) graphicx.Pixel64 + func (i *PixelImage64) Set(x, y int, pixel uint64) + func (i *PixelImage64) SetPixel(x, y int, pixel graphicx.Pixel64) + type RGB64ChanImage struct + func (p *RGB64ChanImage) Pixel64At(x, y int) (pixel uint64) + func (p *RGB64ChanImage) RGB64At(x, y int) (R, G, B uint16) + func (p *RGB64ChanImage) SetPixel64(x, y int, pixel uint64) + func (p *RGB64ChanImage) SetRGB64(x, y int, R, G, B uint16) + type RGBChanImage struct + func (p *RGBChanImage) PixelAt(x, y int) (pixel uint32) + func (p *RGBChanImage) RGBAt(x, y int) (R, G, B uint8) + func (p *RGBChanImage) SetPixel(x, y int, pixel uint32) + func (p *RGBChanImage) SetRGB(x, y int, R, G, B uint8)