00:00
00:00
Newgrounds Background Image Theme

Blozeoff just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

reset scale without changing size

319 Views | 2 Replies
New Topic Respond to this Topic

reset scale without changing size 2014-09-20 23:10:27


I have scaled down the size of a shape and when I add a bitmap fill, the bitmap is squashed down. I guess it is scaling with the shape, I want it to display at 100%. Is there a way I can reset the "scale property" of the shape without changing its size? So it is as if I drew the shape straight onto the stage.

Response to reset scale without changing size 2014-09-20 23:46:53


Sounds like you're wanting basically to just display a section of the full bitmap image, yes? Then you'll want to use bitmapdata.copyPixels(). Here's the documentation, it's pretty straight forward.

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/BitmapData.html#copyPixels()

Response to reset scale without changing size 2014-09-21 05:25:57


No, I actually wanted to just use a bitmap fill without changing the scale.. I've fixed it now, for some reason changing the fill without using the paint bucket tool worked for me.