Announcement
Announcement
| 2nd Quarter Contest Announcement posted! See the Community Announcements section. |
![]() ![]() |
Feb 18 2012, 05:19 PM
Post
#1
|
|
![]() Type: Coder |
Is it possible to make a new Bitmap from a zoomed Sprite?
Let's suppose I do the following with a Sprite object: sprite.zoom_x = 2 sprite.zoom_y = 2 Is there a way I can make a new Bitmap data object that will store the same dimension of the zoomed sprite, and then use it in a new sprite object as a new regular size. This post has been edited by TheScholar: Feb 18 2012, 05:24 PM |
|
|
|
Mar 8 2012, 12:13 AM
Post
#2
|
|
![]() I demand cookies. ![]() Type: Coder Alignment: Neutral Good |
>.> I dunno if you still need this but what the heck
CODE (bmp=Bitmap.new(sprite.width*sprite.zoom_x,sprite.height*sprite.zoom_y)).stretch_blt(bmp.rect,sprite.bitmap,sprite.src_rect)
bmp -------------------- Spoiler: To be Hexa-fied Spoiler: Spoiler: |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 21st May 2013 - 03:10 AM |
|
|