correcting scaling bug
This commit is contained in:
parent
54cbc623fb
commit
6871bbf07c
|
@ -619,8 +619,8 @@ var ScaleImage = function(xFactor, yFactor, img) {
|
||||||
Math.floor((img.getHeight() * yFactor) / 2));
|
Math.floor((img.getHeight() * yFactor) / 2));
|
||||||
|
|
||||||
this.img = img;
|
this.img = img;
|
||||||
this.width = img.getWidth() * xFactor;
|
this.width = Math.floor(img.getWidth() * xFactor);
|
||||||
this.height = img.getHeight() * yFactor;
|
this.height = Math.floor(img.getHeight() * yFactor);
|
||||||
this.xFactor = xFactor;
|
this.xFactor = xFactor;
|
||||||
this.yFactor = yFactor;
|
this.yFactor = yFactor;
|
||||||
};
|
};
|
||||||
|
|
|
@ -116,6 +116,9 @@
|
||||||
;(define D (overlay XDOG BG))
|
;(define D (overlay XDOG BG))
|
||||||
;(define CDOG (overlay (clipart/url DOGURL) BG))
|
;(define CDOG (overlay (clipart/url DOGURL) BG))
|
||||||
;D
|
;D
|
||||||
|
(image-width DOG)
|
||||||
|
(image-height DOG)
|
||||||
|
|
||||||
|
|
||||||
(define colors (image->color-list DOG))
|
(define colors (image->color-list DOG))
|
||||||
(displayln (length colors))
|
(displayln (length colors))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user