github.com/traefik/yaegi@v0.15.1/stdlib/go1_19_image.go (about) 1 // Code generated by 'yaegi extract image'. DO NOT EDIT. 2 3 //go:build go1.19 && !go1.20 4 // +build go1.19,!go1.20 5 6 package stdlib 7 8 import ( 9 "image" 10 "image/color" 11 "reflect" 12 ) 13 14 func init() { 15 Symbols["image/image"] = map[string]reflect.Value{ 16 // function, constant and variable definitions 17 "Black": reflect.ValueOf(&image.Black).Elem(), 18 "Decode": reflect.ValueOf(image.Decode), 19 "DecodeConfig": reflect.ValueOf(image.DecodeConfig), 20 "ErrFormat": reflect.ValueOf(&image.ErrFormat).Elem(), 21 "NewAlpha": reflect.ValueOf(image.NewAlpha), 22 "NewAlpha16": reflect.ValueOf(image.NewAlpha16), 23 "NewCMYK": reflect.ValueOf(image.NewCMYK), 24 "NewGray": reflect.ValueOf(image.NewGray), 25 "NewGray16": reflect.ValueOf(image.NewGray16), 26 "NewNRGBA": reflect.ValueOf(image.NewNRGBA), 27 "NewNRGBA64": reflect.ValueOf(image.NewNRGBA64), 28 "NewNYCbCrA": reflect.ValueOf(image.NewNYCbCrA), 29 "NewPaletted": reflect.ValueOf(image.NewPaletted), 30 "NewRGBA": reflect.ValueOf(image.NewRGBA), 31 "NewRGBA64": reflect.ValueOf(image.NewRGBA64), 32 "NewUniform": reflect.ValueOf(image.NewUniform), 33 "NewYCbCr": reflect.ValueOf(image.NewYCbCr), 34 "Opaque": reflect.ValueOf(&image.Opaque).Elem(), 35 "Pt": reflect.ValueOf(image.Pt), 36 "Rect": reflect.ValueOf(image.Rect), 37 "RegisterFormat": reflect.ValueOf(image.RegisterFormat), 38 "Transparent": reflect.ValueOf(&image.Transparent).Elem(), 39 "White": reflect.ValueOf(&image.White).Elem(), 40 "YCbCrSubsampleRatio410": reflect.ValueOf(image.YCbCrSubsampleRatio410), 41 "YCbCrSubsampleRatio411": reflect.ValueOf(image.YCbCrSubsampleRatio411), 42 "YCbCrSubsampleRatio420": reflect.ValueOf(image.YCbCrSubsampleRatio420), 43 "YCbCrSubsampleRatio422": reflect.ValueOf(image.YCbCrSubsampleRatio422), 44 "YCbCrSubsampleRatio440": reflect.ValueOf(image.YCbCrSubsampleRatio440), 45 "YCbCrSubsampleRatio444": reflect.ValueOf(image.YCbCrSubsampleRatio444), 46 "ZP": reflect.ValueOf(&image.ZP).Elem(), 47 "ZR": reflect.ValueOf(&image.ZR).Elem(), 48 49 // type definitions 50 "Alpha": reflect.ValueOf((*image.Alpha)(nil)), 51 "Alpha16": reflect.ValueOf((*image.Alpha16)(nil)), 52 "CMYK": reflect.ValueOf((*image.CMYK)(nil)), 53 "Config": reflect.ValueOf((*image.Config)(nil)), 54 "Gray": reflect.ValueOf((*image.Gray)(nil)), 55 "Gray16": reflect.ValueOf((*image.Gray16)(nil)), 56 "Image": reflect.ValueOf((*image.Image)(nil)), 57 "NRGBA": reflect.ValueOf((*image.NRGBA)(nil)), 58 "NRGBA64": reflect.ValueOf((*image.NRGBA64)(nil)), 59 "NYCbCrA": reflect.ValueOf((*image.NYCbCrA)(nil)), 60 "Paletted": reflect.ValueOf((*image.Paletted)(nil)), 61 "PalettedImage": reflect.ValueOf((*image.PalettedImage)(nil)), 62 "Point": reflect.ValueOf((*image.Point)(nil)), 63 "RGBA": reflect.ValueOf((*image.RGBA)(nil)), 64 "RGBA64": reflect.ValueOf((*image.RGBA64)(nil)), 65 "RGBA64Image": reflect.ValueOf((*image.RGBA64Image)(nil)), 66 "Rectangle": reflect.ValueOf((*image.Rectangle)(nil)), 67 "Uniform": reflect.ValueOf((*image.Uniform)(nil)), 68 "YCbCr": reflect.ValueOf((*image.YCbCr)(nil)), 69 "YCbCrSubsampleRatio": reflect.ValueOf((*image.YCbCrSubsampleRatio)(nil)), 70 71 // interface wrapper definitions 72 "_Image": reflect.ValueOf((*_image_Image)(nil)), 73 "_PalettedImage": reflect.ValueOf((*_image_PalettedImage)(nil)), 74 "_RGBA64Image": reflect.ValueOf((*_image_RGBA64Image)(nil)), 75 } 76 } 77 78 // _image_Image is an interface wrapper for Image type 79 type _image_Image struct { 80 IValue interface{} 81 WAt func(x int, y int) color.Color 82 WBounds func() image.Rectangle 83 WColorModel func() color.Model 84 } 85 86 func (W _image_Image) At(x int, y int) color.Color { 87 return W.WAt(x, y) 88 } 89 func (W _image_Image) Bounds() image.Rectangle { 90 return W.WBounds() 91 } 92 func (W _image_Image) ColorModel() color.Model { 93 return W.WColorModel() 94 } 95 96 // _image_PalettedImage is an interface wrapper for PalettedImage type 97 type _image_PalettedImage struct { 98 IValue interface{} 99 WAt func(x int, y int) color.Color 100 WBounds func() image.Rectangle 101 WColorIndexAt func(x int, y int) uint8 102 WColorModel func() color.Model 103 } 104 105 func (W _image_PalettedImage) At(x int, y int) color.Color { 106 return W.WAt(x, y) 107 } 108 func (W _image_PalettedImage) Bounds() image.Rectangle { 109 return W.WBounds() 110 } 111 func (W _image_PalettedImage) ColorIndexAt(x int, y int) uint8 { 112 return W.WColorIndexAt(x, y) 113 } 114 func (W _image_PalettedImage) ColorModel() color.Model { 115 return W.WColorModel() 116 } 117 118 // _image_RGBA64Image is an interface wrapper for RGBA64Image type 119 type _image_RGBA64Image struct { 120 IValue interface{} 121 WAt func(x int, y int) color.Color 122 WBounds func() image.Rectangle 123 WColorModel func() color.Model 124 WRGBA64At func(x int, y int) color.RGBA64 125 } 126 127 func (W _image_RGBA64Image) At(x int, y int) color.Color { 128 return W.WAt(x, y) 129 } 130 func (W _image_RGBA64Image) Bounds() image.Rectangle { 131 return W.WBounds() 132 } 133 func (W _image_RGBA64Image) ColorModel() color.Model { 134 return W.WColorModel() 135 } 136 func (W _image_RGBA64Image) RGBA64At(x int, y int) color.RGBA64 { 137 return W.WRGBA64At(x, y) 138 }