remove debug prints
This commit is contained in:
parent
7f7912cc16
commit
3e81c81f79
4
data.go
4
data.go
|
@ -215,7 +215,6 @@ func PictureDataFromPicture(pic Picture) PictureData {
|
|||
//
|
||||
// The resulting image.NRGBA's Bounds will be equivalent of the PictureData's Bounds.
|
||||
func (pd PictureData) Image() *image.NRGBA {
|
||||
fmt.Println(pd.Rect.Pos + pd.Rect.Size)
|
||||
bounds := image.Rect(
|
||||
int(math.Floor(pd.Rect.Pos.X())),
|
||||
int(math.Floor(pd.Rect.Pos.Y())),
|
||||
|
@ -223,7 +222,6 @@ func (pd PictureData) Image() *image.NRGBA {
|
|||
int(math.Ceil(pd.Rect.Pos.Y()+pd.Rect.Size.Y())),
|
||||
)
|
||||
nrgba := image.NewNRGBA(bounds)
|
||||
fmt.Println(nrgba.Rect)
|
||||
|
||||
i := 0
|
||||
for y := bounds.Min.Y; y < bounds.Max.Y; y++ {
|
||||
|
@ -239,8 +237,6 @@ func (pd PictureData) Image() *image.NRGBA {
|
|||
|
||||
verticalFlip(nrgba)
|
||||
|
||||
fmt.Println(len(nrgba.Pix) / 4)
|
||||
|
||||
return nrgba
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue