# Strange behavior in scaling an image

**URL:** <https://www.ruby-forum.com/t/strange-behavior-in-scaling-an-image/149403>\
**Category:** FXRuby\
**Created:** [September 24, 2008, 2:17pm UTC](https://www.ruby-forum.com/t/strange-behavior-in-scaling-an-image/149403 "2008-09-24T14:17:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![robyonrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b5ac83/32.png) [@robyonrails](https://www.ruby-forum.com/u/robyonrails)\
**Post date:** [September 24, 2008, 2:17pm UTC](https://www.ruby-forum.com/t/strange-behavior-in-scaling-an-image/149403/1 "2008-09-24T14:17:24Z")

</div>

Can anyone tell me the difference between

> self.image = Fox::FXJPGImage.new(app, io.read).scale(100,100,1)

and

> self.image = Fox::FXJPGImage.new(app, io.read)  
> self.image.scale(100,100,1)

???

The former makes the image appear like a point, such as it wasn’t  
loaded, while the latter makes it scaling in the right way.
