remove debug prints

This commit is contained in:
faiface 2017-02-28 18:29:30 +01:00
parent 7f7912cc16
commit 3e81c81f79
1 changed files with 0 additions and 4 deletions

View File

@ -215,7 +215,6 @@ func PictureDataFromPicture(pic Picture) PictureData {
// //
// The resulting image.NRGBA's Bounds will be equivalent of the PictureData's Bounds. // The resulting image.NRGBA's Bounds will be equivalent of the PictureData's Bounds.
func (pd PictureData) Image() *image.NRGBA { func (pd PictureData) Image() *image.NRGBA {
fmt.Println(pd.Rect.Pos + pd.Rect.Size)
bounds := image.Rect( bounds := image.Rect(
int(math.Floor(pd.Rect.Pos.X())), int(math.Floor(pd.Rect.Pos.X())),
int(math.Floor(pd.Rect.Pos.Y())), 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())), int(math.Ceil(pd.Rect.Pos.Y()+pd.Rect.Size.Y())),
) )
nrgba := image.NewNRGBA(bounds) nrgba := image.NewNRGBA(bounds)
fmt.Println(nrgba.Rect)
i := 0 i := 0
for y := bounds.Min.Y; y < bounds.Max.Y; y++ { for y := bounds.Min.Y; y < bounds.Max.Y; y++ {
@ -239,8 +237,6 @@ func (pd PictureData) Image() *image.NRGBA {
verticalFlip(nrgba) verticalFlip(nrgba)
fmt.Println(len(nrgba.Pix) / 4)
return nrgba return nrgba
} }