iPhone App Directory
RPG Maker VX
 
Gallery Members Search Calendar Help


Welcome Guest ( Log In | Register )

Collapse

>Announcement

Keep an eye out for the upcoming 3rd Quarter Contest!
 
Reply to this topicStart new topic
> RGSS: new Bitmap from a zoomed Sprite?
TheScholar
post Feb 18 2012, 05:19 PM
Post #1



Group Icon


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
Go to the top of the page
 
+Quote Post
   
IceDragon
post Mar 8 2012, 12:13 AM
Post #2


I demand cookies.
Group Icon


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:
Other/Reminders--
Support your cookie loving dragon!

CODE
[url="http://www.rpgmakervx.net/index.php?showuser=52960"][img]http://i56.tinypic.com/2d1pfmw.png[/img][/url]


http://www.rpgmakervx.net/index.php?showto...amp;#entry48215 HA AUTOTILES
Pine's Birthday is the 2th of July

WORK ON YOUR TIME MEMORY @___@
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 27th August 2014 - 07:59 AM

RPGMakerVX.net is an Privacy Policy, Legal.