2013-11-28 15:57:09 +00:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "utf-8" >
< title > Phaser Class: BitmapData< / title >
<!-- [if lt IE 9]>
< script src = "//html5shiv.googlecode.com/svn/trunk/html5.js" > < / script >
<![endif]-->
2014-11-15 20:01:46 +00:00
< link type = "text/css" rel = "stylesheet" href = "styles/default.css" >
2013-11-28 15:57:09 +00:00
< link type = "text/css" rel = "stylesheet" href = "styles/sunlight.default.css" >
< link type = "text/css" rel = "stylesheet" href = "styles/site.cerulean.css" >
< / head >
< body >
2014-11-25 00:23:44 +00:00
2013-11-28 15:57:09 +00:00
< div class = "container-fluid" >
< div class = "navbar navbar-fixed-top navbar-inverse" >
2014-11-25 00:23:44 +00:00
< div style = "position: absolute; width: 143px; height: 31px; right: 10px; top: 10px; z-index: 1050" > < a href = "http://phaser.io" > < img src = "img/phaser.png" border = "0" / > < / a > < / div >
2013-11-28 15:57:09 +00:00
< div class = "navbar-inner" >
2014-11-25 00:23:44 +00:00
< a class = "brand" href = "index.html" > Phaser API< / a >
2013-11-28 15:57:09 +00:00
< ul class = "nav" >
2014-11-25 00:23:44 +00:00
2013-11-28 15:57:09 +00:00
< li class = "dropdown" >
< a href = "namespaces.list.html" class = "dropdown-toggle" data-toggle = "dropdown" > Namespaces< b
class="caret">< / b > < / a >
< ul class = "dropdown-menu " >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-0" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.html" > Phaser< / a >
< / li >
2014-11-15 20:01:46 +00:00
< li class = "class-depth-0" >
< a href = "PIXI.html" > PIXI< / a >
< / li >
2013-11-28 15:57:09 +00:00
< / ul >
< / li >
< li class = "dropdown" >
< a href = "classes.list.html" class = "dropdown-toggle" data-toggle = "dropdown" > Classes< b
class="caret">< / b > < / a >
< ul class = "dropdown-menu " >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "Matrix.html" > Matrix< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Animation.html" > Animation< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.AnimationManager.html" > AnimationManager< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.AnimationParser.html" > AnimationParser< / a >
< / li >
2014-04-29 14:39:02 +00:00
< li class = "class-depth-1" >
< a href = "Phaser.ArrayList.html" > ArrayList< / a >
< / li >
2014-11-25 00:23:44 +00:00
< li class = "class-depth-1" >
< a href = "Phaser.ArraySet.html" > ArraySet< / a >
< / li >
2014-11-15 20:01:46 +00:00
< li class = "class-depth-1" >
< a href = "Phaser.ArrayUtils.html" > ArrayUtils< / a >
< / li >
2014-10-09 15:12:53 +00:00
< li class = "class-depth-1" >
< a href = "Phaser.AudioSprite.html" > AudioSprite< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.BitmapData.html" > BitmapData< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.BitmapText.html" > BitmapText< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Button.html" > Button< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Cache.html" > Cache< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Camera.html" > Camera< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Canvas.html" > Canvas< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Circle.html" > Circle< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Color.html" > Color< / a >
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-2" >
< a href = "Phaser.Component.Angle.html" > Angle< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Animation.html" > Animation< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.AutoCull.html" > AutoCull< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Bounds.html" > Bounds< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.BringToTop.html" > BringToTop< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Core.html" > Core< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Crop.html" > Crop< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Delta.html" > Delta< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Destroy.html" > Destroy< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.FixedToCamera.html" > FixedToCamera< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Health.html" > Health< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.InCamera.html" > InCamera< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.InputEnabled.html" > InputEnabled< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.InWorld.html" > InWorld< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.LifeSpan.html" > LifeSpan< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.LoadTexture.html" > LoadTexture< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Overlap.html" > Overlap< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.PhysicsBody.html" > PhysicsBody< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Reset.html" > Reset< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.ScaleMinMax.html" > ScaleMinMax< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Component.Smoothed.html" > Smoothed< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Device.html" > Device< / a >
< / li >
2014-11-15 20:01:46 +00:00
< li class = "class-depth-1" >
< a href = "Phaser.DOM.html" > DOM< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Easing.html" > Easing< / a >
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Back.html" > Back< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Bounce.html" > Bounce< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Circular.html" > Circular< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Cubic.html" > Cubic< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Elastic.html" > Elastic< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Exponential.html" > Exponential< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Linear.html" > Linear< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Quadratic.html" > Quadratic< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Quartic.html" > Quartic< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Quintic.html" > Quintic< / a >
< / li >
< li class = "class-depth-2" >
< a href = "Phaser.Easing.Sinusoidal.html" > Sinusoidal< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-02-18 03:01:51 +00:00
< a href = "Phaser.Ellipse.html" > Ellipse< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Events.html" > Events< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Filter.html" > Filter< / a >
< / li >
2014-09-09 14:36:56 +00:00
< li class = "class-depth-1" >
< a href = "Phaser.FlexGrid.html" > FlexGrid< / a >
< / li >
< li class = "class-depth-1" >
< a href = "Phaser.FlexLayer.html" > FlexLayer< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Frame.html" > Frame< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.FrameData.html" > FrameData< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Game.html" > Game< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-02-21 15:37:26 +00:00
< a href = "Phaser.GameObjectCreator.html" > GameObjectCreator< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.GameObjectFactory.html" > GameObjectFactory< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-02-05 06:29:17 +00:00
< a href = "Phaser.Gamepad.html" > Gamepad< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-02-05 06:29:17 +00:00
< a href = "Phaser.GamepadButton.html" > GamepadButton< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Graphics.html" > Graphics< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Group.html" > Group< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-02-08 07:24:22 +00:00
< a href = "Phaser.Image.html" > Image< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Input.html" > Input< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.InputHandler.html" > InputHandler< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Key.html" > Key< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Keyboard.html" > Keyboard< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-02-05 06:29:17 +00:00
< a href = "Phaser.Line.html" > Line< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.LinkedList.html" > LinkedList< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Loader.html" > Loader< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.LoaderParser.html" > LoaderParser< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Math.html" > Math< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Mouse.html" > Mouse< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.MSPointer.html" > MSPointer< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Net.html" > Net< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
< a href = "Phaser.Particle.html" > Particle< / a >
< / li >
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Particles.html" > Particles< / a >
< / li >
2014-10-09 15:12:53 +00:00
< li class = "class-depth-2" >
< a href = "Phaser.Particles.Arcade.html" > Arcade< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Particles.Arcade.Emitter.html" > Emitter< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Physics.html" > Physics< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-2" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Physics.Arcade.html" > Arcade< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.Arcade.Body.html" > Body< / a >
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-3" >
< a href = "Phaser.Physics.Arcade.html#TilemapCollision" > TilemapCollision< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-2" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.Ninja.html" > Ninja< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.Ninja.AABB.html" > AABB< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.Ninja.Body.html" > Body< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.Ninja.Circle.html" > Circle< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.Ninja.Tile.html" > Tile< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-2" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.html" > P2< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.Body.html" > Body< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.BodyDebug.html" > BodyDebug< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.CollisionGroup.html" > CollisionGroup< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.ContactMaterial.html" > ContactMaterial< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.DistanceConstraint.html" > DistanceConstraint< / a >
< / li >
2014-04-11 12:09:28 +00:00
< li class = "class-depth-3" >
< a href = "Phaser.Physics.P2.FixtureList.html" > FixtureList< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.GearConstraint.html" > GearConstraint< / a >
2014-02-21 15:37:26 +00:00
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.InversePointProxy.html" > InversePointProxy< / a >
2014-02-21 15:37:26 +00:00
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.LockConstraint.html" > LockConstraint< / a >
2014-02-21 15:37:26 +00:00
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.Material.html" > Material< / a >
2014-02-21 15:37:26 +00:00
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.PointProxy.html" > PointProxy< / a >
2014-02-21 15:37:26 +00:00
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.PrismaticConstraint.html" > PrismaticConstraint< / a >
2014-02-21 15:37:26 +00:00
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.RevoluteConstraint.html" > RevoluteConstraint< / a >
2014-02-21 15:37:26 +00:00
< / li >
2014-09-09 14:36:56 +00:00
< li class = "class-depth-3" >
< a href = "Phaser.Physics.P2.RotationalSpring.html" > RotationalSpring< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-3" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.Physics.P2.Spring.html" > Spring< / a >
2014-02-21 15:37:26 +00:00
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Plugin.html" > Plugin< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.PluginManager.html" > PluginManager< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Point.html" > Point< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Pointer.html" > Pointer< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Polygon.html" > Polygon< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.QuadTree.html" > QuadTree< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.RandomDataGenerator.html" > RandomDataGenerator< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Rectangle.html" > Rectangle< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.RenderTexture.html" > RenderTexture< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.RequestAnimationFrame.html" > RequestAnimationFrame< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.RetroFont.html" > RetroFont< / a >
< / li >
2014-09-09 14:36:56 +00:00
< li class = "class-depth-1" >
< a href = "Phaser.Rope.html" > Rope< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-03-14 06:36:05 +00:00
< a href = "Phaser.ScaleManager.html" > ScaleManager< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Signal.html" > Signal< / a >
< / li >
2014-04-11 12:09:28 +00:00
< li class = "class-depth-1" >
< a href = "Phaser.SignalBinding.html" > SignalBinding< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-02-05 06:29:17 +00:00
< a href = "Phaser.SinglePad.html" > SinglePad< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Sound.html" > Sound< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.SoundManager.html" > SoundManager< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Sprite.html" > Sprite< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-02-18 03:01:51 +00:00
< a href = "Phaser.SpriteBatch.html" > SpriteBatch< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Stage.html" > Stage< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.State.html" > State< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.StateManager.html" > StateManager< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Text.html" > Text< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Tile.html" > Tile< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Tilemap.html" > Tilemap< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.TilemapLayer.html" > TilemapLayer< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.TilemapParser.html" > TilemapParser< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Tileset.html" > Tileset< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.TileSprite.html" > TileSprite< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Time.html" > Time< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Timer.html" > Timer< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2014-02-05 06:29:17 +00:00
< a href = "Phaser.TimerEvent.html" > TimerEvent< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Touch.html" > Touch< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Tween.html" > Tween< / a >
< / li >
2014-11-25 00:23:44 +00:00
< li class = "class-depth-1" >
< a href = "Phaser.TweenData.html" > TweenData< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.TweenManager.html" > TweenManager< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Utils.html" > Utils< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-2" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.Utils.Debug.html" > Debug< / a >
< / li >
2014-04-10 22:13:43 +00:00
< li class = "class-depth-1" >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.World.html" > World< / a >
< / li >
2014-11-15 20:01:46 +00:00
< li class = "class-depth-1" >
< a href = "PIXI.AbstractFilter.html" > AbstractFilter< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.BaseTexture.html" > BaseTexture< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.BitmapText.html" > BitmapText< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.CanvasBuffer.html" > CanvasBuffer< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.CanvasGraphics.html" > CanvasGraphics< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.CanvasMaskManager.html" > CanvasMaskManager< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.CanvasRenderer.html" > CanvasRenderer< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.CanvasTinter.html" > CanvasTinter< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.ComplexPrimitiveShader.html" > ComplexPrimitiveShader< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.DisplayObject.html" > DisplayObject< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.DisplayObjectContainer.html" > DisplayObjectContainer< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.Event.html" > Event< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.EventTarget.html" > EventTarget< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.FilterTexture.html" > FilterTexture< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.Graphics.html" > Graphics< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.GraphicsData.html" > GraphicsData< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.PIXI.html" > PIXI< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.PixiFastShader.html" > PixiFastShader< / a >
< / li >
< li class = "class-depth-1" >
< a href = "PIXI.PixiShader.html" > PixiShader< / a >
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.PolyK.html" > PolyK< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.PrimitiveShader.html" > PrimitiveShader< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.RenderTexture.html" > RenderTexture< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.Rope.html" > Rope< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.Sprite.html" > Sprite< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.SpriteBatch.html" > SpriteBatch< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.Stage.html" > Stage< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.Strip.html" > Strip< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.StripShader.html" > StripShader< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.Text.html" > Text< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.Texture.html" > Texture< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.TilingSprite.html" > TilingSprite< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.VideoTexture.html" > VideoTexture< / a >
2014-11-15 20:01:46 +00:00
< / li >
2014-11-25 00:23:44 +00:00
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.WebGLBlendModeManager.html" > WebGLBlendModeManager< / a >
2014-11-25 00:23:44 +00:00
< / li >
2014-11-15 20:01:46 +00:00
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.WebGLFastSpriteBatch.html" > WebGLFastSpriteBatch< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.WebGLFilterManager.html" > WebGLFilterManager< / a >
2014-11-15 20:01:46 +00:00
< / li >
< li class = "class-depth-1" >
2015-03-23 23:46:30 +00:00
< a href = "PIXI.WebGLRenderer.html" > WebGLRenderer< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "RoundedRectangle.html" > RoundedRectangle< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< / ul >
< / li >
< li class = "dropdown" >
< a href = "global.html" class = "dropdown-toggle" data-toggle = "dropdown" > Global< b
class="caret">< / b > < / a >
< ul class = "dropdown-menu " >
< li class = "class-depth-0" >
< a href = "global.html#append" > append< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#apply" > apply< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#applyInverse" > applyInverse< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#blendModes" > blendModes< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#clone" > clone< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#contains" > contains< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#fromArray" > fromArray< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#identity" > identity< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#rotate" > rotate< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#scale" > scale< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#scaleModes" > scaleModes< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#sort" > sort< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#toArray" > toArray< / a >
2014-11-15 20:01:46 +00:00
< / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-0" >
< a href = "global.html#translate" > translate< / a >
2014-11-15 20:01:46 +00:00
< / li >
2013-11-28 15:57:09 +00:00
< / ul >
< / li >
2014-11-25 00:23:44 +00:00
2014-11-15 20:01:46 +00:00
< li class = "dropdown" >
2014-11-25 00:23:44 +00:00
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > Core< b class = "caret" > < / b > < / a >
< ul class = "dropdown-menu " >
2014-12-03 10:39:11 +00:00
< li class = "class-depth-1" > < a href = "Phaser.Game.html" > Game< / a > < / li >
2014-11-25 00:23:44 +00:00
< li class = "class-depth-1" > < a href = "Phaser.Group.html" > Group< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.World.html" > World< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Loader.html" > Loader< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Time.html" > Time< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Camera.html" > Camera< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.StateManager.html" > State Manager< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.TweenManager.html" > Tween Manager< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.SoundManager.html" > Sound Manager< / a > < / li >
2015-01-06 06:57:25 +00:00
< li class = "class-depth-1" > < a href = "Phaser.Input.html" > Input Manager< / a > < / li >
2014-11-25 00:23:44 +00:00
< li class = "class-depth-1" > < a href = "Phaser.ScaleManager.html" > Scale Manager< / a > < / li >
< / ul >
< / li >
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > Game Objects< b class = "caret" > < / b > < / a >
2014-11-15 20:01:46 +00:00
< ul class = "dropdown-menu " >
2014-11-25 00:23:44 +00:00
< li class = "class-depth-1" > < a href = "Phaser.GameObjectFactory.html" > Factory (game.add)< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.GameObjectCreator.html" > Creator (game.make)< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Sprite.html" > Sprite< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Image.html" > Image< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Sound.html" > Sound< / a > < / li >
2015-01-06 06:57:25 +00:00
< li class = "class-depth-1" > < a href = "Phaser.Particles.Arcade.Emitter.html" > Particle Emitter< / a > < / li >
2014-12-03 10:39:11 +00:00
< li class = "class-depth-1" > < a href = "Phaser.Particle.html" > Particle< / a > < / li >
2014-11-25 00:23:44 +00:00
< li class = "class-depth-1" > < a href = "Phaser.Text.html" > Text< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Tween.html" > Tween< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.BitmapText.html" > BitmapText< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Tilemap.html" > Tilemap< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.BitmapData.html" > BitmapData< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.RetroFont.html" > RetroFont< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Button.html" > Button< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Animation.html" > Animation< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Graphics.html" > Graphics< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.RenderTexture.html" > RenderTexture< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.TileSprite.html" > TileSprite< / a > < / li >
< / ul >
< / li >
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > Geometry< b class = "caret" > < / b > < / a >
< ul class = "dropdown-menu " >
< li class = "class-depth-1" > < a href = "Phaser.Circle.html" > Circle< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Rectangle.html" > Rectangle< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Point.html" > Point< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Line.html" > Line< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Ellipse.html" > Ellipse< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Polygon.html" > Polygon< / a > < / li >
< / ul >
< / li >
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > Physics< b class = "caret" > < / b > < / a >
< ul class = "dropdown-menu " >
< li class = "class-depth-1" > < a href = "Phaser.Physics.Arcade.html" > Arcade Physics< / a > < / li >
< li class = "class-depth-2" > < a href = "Phaser.Physics.Arcade.Body.html" > Body< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Physics.P2.html" > P2 Physics< / a > < / li >
< li class = "class-depth-2" > < a href = "Phaser.Physics.P2.Body.html" > Body< / a > < / li >
< li class = "class-depth-2" > < a href = "Phaser.Physics.P2.Spring.html" > Spring< / a > < / li >
< li class = "class-depth-2" > < a href = "Phaser.Physics.P2.CollisionGroup.html" > CollisionGroup< / a > < / li >
< li class = "class-depth-2" > < a href = "Phaser.Physics.P2.ContactMaterial.html" > ContactMaterial< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Physics.Ninja.html" > Ninja Physics< / a > < / li >
< li class = "class-depth-2" > < a href = "Phaser.Physics.Body.html" > Body< / a > < / li >
2014-11-15 20:01:46 +00:00
< / ul >
< / li >
2014-11-25 00:23:44 +00:00
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > Input< b class = "caret" > < / b > < / a >
< ul class = "dropdown-menu " >
< li class = "class-depth-1" > < a href = "Phaser.InputHandler.html" > Input Handler< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Pointer.html" > Pointer< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Mouse.html" > Mouse< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Keyboard.html" > Keyboard< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Key.html" > Key< / a > < / li >
< li class = "class-depth-1" > < a href = "Phaser.Gamepad.html" > Gamepad< / a > < / li >
< / ul >
< / li >
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" > Community< b class = "caret" > < / b > < / a >
< ul class = "dropdown-menu " >
2015-03-26 02:55:18 +00:00
< li class = "class-depth-1" > < a href = "http://phaser.io" > Phaser Web Site< / a > < / li >
2014-11-25 00:23:44 +00:00
< li class = "class-depth-1" > < a href = "https://github.com/photonstorm/phaser" > Phaser Github< / a > < / li >
2015-03-26 02:55:18 +00:00
< li class = "class-depth-1" > < a href = "http://phaser.io/examples" > Phaser Examples< / a > < / li >
2014-11-25 00:23:44 +00:00
< li class = "class-depth-1" > < a href = "https://github.com/photonstorm/phaser-plugins" > Phaser Plugins< / a > < / li >
< li class = "class-depth-1" > < a href = "http://www.html5gamedevs.com/forum/14-phaser/" > Forum< / a > < / li >
< li class = "class-depth-1" > < a href = "http://stackoverflow.com/questions/tagged/phaser-framework" > Stack Overflow< / a > < / li >
2015-03-26 02:55:18 +00:00
< li class = "class-depth-1" > < a href = "http://phaser.io/learn" > Weekly Coding Tips< / a > < / li >
2014-11-25 00:23:44 +00:00
< li class = "class-depth-1" > < a href = "https://confirmsubscription.com/h/r/369DE48E3E86AF1E" > Newsletter< / a > < / li >
2015-03-26 02:55:18 +00:00
< li class = "class-depth-1" > < a href = "http://phaser.io/community/twitter" > Twitter< / a > < / li >
< li class = "class-depth-1" > < a href = "http://phaser.io/community/irc" > IRC< / a > < / li >
2015-03-23 23:46:30 +00:00
< li class = "class-depth-1" > < a href = "https://www.gittip.com/photonstorm/" > Donate to the project< / a > < / li >
< li class = "class-depth-1" > < a href = "https://www.codeandweb.com/texturepacker/phaser" > Texture Packer< / a > < / li >
2014-11-25 00:23:44 +00:00
< / ul >
< / li >
2014-11-15 20:01:46 +00:00
< / ul >
< / div >
< / div >
< div class = "row-fluid" >
2013-11-28 15:57:09 +00:00
< div class = "span8" >
< div id = "main" >
2014-11-25 00:23:44 +00:00
<!-- <h1 class="page - title">Class: BitmapData</h1> -->
2013-11-28 15:57:09 +00:00
< section >
< header >
< h2 >
< span class = "ancestors" > < a href = "Phaser.html" > Phaser< / a > .< / span >
BitmapData
< / h2 >
< / header >
< article >
< div class = "container-overview" >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="BitmapData">< span class = "type-signature" > < / span > new BitmapData< span class = "signature" > (game, key, < span class = "optional" > width< / span > , < span class = "optional" > height< / span > )< / span > < span class = "type-signature" > < / span > < / h4 >
2013-11-28 15:57:09 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
< div class = "description" >
2014-10-09 15:12:53 +00:00
< p > A BitmapData object contains a Canvas element to which you can draw anything you like via normal Canvas context operations.
A single BitmapData can be used as the texture for one or many Images/Sprites.
So if you need to dynamically create a Sprite texture then they are a good choice.< / p >
2013-11-28 15:57:09 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > game< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Game.html" > Phaser.Game< / a > < / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > A reference to the currently running game.< / p > < / td >
< / tr >
2014-02-08 07:24:22 +00:00
< tr >
< td class = "name" > < code > key< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > Internal Phaser reference key for the render texture.< / p > < / td >
< / tr >
2013-11-28 15:57:09 +00:00
< tr >
< td class = "name" > < code > width< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
2014-09-09 14:36:56 +00:00
256
2013-11-28 15:57:09 +00:00
< / td >
< td class = "description last" > < p > The width of the BitmapData in pixels.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > height< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
2014-09-09 14:36:56 +00:00
256
2013-11-28 15:57:09 +00:00
< / td >
< td class = "description last" > < p > The height of the BitmapData in pixels.< / p > < / td >
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-19" > line 19< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-11-28 15:57:09 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
< / dd >
2015-03-23 23:46:30 +00:00
< / div >
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2015-03-23 23:46:30 +00:00
2014-11-15 20:01:46 +00:00
2015-03-23 23:46:30 +00:00
< h3 class = "subsection-title" > Members< / h3 >
2013-11-28 15:57:09 +00:00
2015-03-23 23:46:30 +00:00
< dl >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dt >
< h4 class = "name "
2015-03-23 23:46:30 +00:00
id="baseTexture">< span class = "type-signature" > < / span > baseTexture< span class = "type-signature" > :< a href = "PIXI.BaseTexture.html" > PIXI.BaseTexture< / a > < / span > < / h4 >
2014-11-15 20:01:46 +00:00
< / dt >
< dd >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< div class = "description" >
2015-03-23 23:46:30 +00:00
< p > The PIXI.BaseTexture.< / p >
2014-11-15 20:01:46 +00:00
< / div >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dl class = "details" >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-101" > line 101< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-11-28 15:57:09 +00:00
< / dl >
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="canvas">< span class = "type-signature" > < / span > canvas< span class = "type-signature" > :HTMLCanvasElement< / span > < / h4 >
2013-11-28 15:57:09 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
< div class = "description" >
< p > The canvas to which this BitmapData draws.< / p >
< / div >
2013-11-28 15:57:09 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-48" > line 48< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< / dl >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< / dd >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dt >
< h4 class = "name "
id="context">< span class = "type-signature" > < / span > context< span class = "type-signature" > :CanvasRenderingContext2D< / span > < / h4 >
< / dt >
< dd >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< div class = "description" >
< p > The 2d context of the canvas.< / p >
< / div >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dl class = "details" >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-54" > line 54< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-11-28 15:57:09 +00:00
< / dl >
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="ctx">< span class = "type-signature" > < / span > ctx< span class = "type-signature" > :CanvasRenderingContext2D< / span > < / h4 >
2013-11-28 15:57:09 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
< div class = "description" >
< p > A reference to BitmapData.context.< / p >
< / div >
2013-11-28 15:57:09 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-59" > line 59< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< / dl >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< / dd >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dt >
< h4 class = "name "
id="data">< span class = "type-signature" > < / span > data< span class = "type-signature" > :Uint8ClampedArray< / span > < / h4 >
< / dt >
< dd >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< div class = "description" >
< p > A Uint8ClampedArray view into BitmapData.buffer.< / p >
< / div >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dl class = "details" >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-69" > line 69< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-11-28 15:57:09 +00:00
< / dl >
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="dirty">< span class = "type-signature" > < / span > dirty< span class = "type-signature" > :boolean< / span > < / h4 >
2013-11-28 15:57:09 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
< div class = "description" >
< p > If dirty this BitmapData will be re-rendered.< / p >
< / div >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dl class = "details" >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-131" > line 131< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-11-28 15:57:09 +00:00
2014-03-24 12:41:45 +00:00
< / dl >
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="disableTextureUpload">< span class = "type-signature" > < / span > disableTextureUpload< span class = "type-signature" > :boolean< / span > < / h4 >
2014-03-24 12:41:45 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
< div class = "description" >
< p > If disableTextureUpload is true this BitmapData will never send its image data to the GPU when its dirty flag is true.< / p >
< / div >
2014-03-24 12:41:45 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-126" > line 126< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
< / dl >
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
< / dd >
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
< dt >
< h4 class = "name "
id="game">< span class = "type-signature" > < / span > game< span class = "type-signature" > :< a href = "Phaser.Game.html" > Phaser.Game< / a > < / span > < / h4 >
< / dt >
< dd >
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
< div class = "description" >
< p > A reference to the currently running game.< / p >
< / div >
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
< dl class = "details" >
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-27" > line 27< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-03-24 12:41:45 +00:00
2013-11-28 15:57:09 +00:00
< / dl >
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="height">< span class = "type-signature" > < / span > height< span class = "type-signature" > :number< / span > < / h4 >
2013-11-28 15:57:09 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
< div class = "description" >
< p > The height of the BitmapData in pixels.< / p >
< / div >
2013-11-28 15:57:09 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-42" > line 42< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< / dl >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< / dd >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dt >
< h4 class = "name "
id="imageData">< span class = "type-signature" > < / span > imageData< span class = "type-signature" > :ImageData< / span > < / h4 >
< / dt >
< dd >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< div class = "description" >
< p > The context image data.< / p >
< / div >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dl class = "details" >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-64" > line 64< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-11-28 15:57:09 +00:00
< / dl >
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="key">< span class = "type-signature" > < / span > key< span class = "type-signature" > :string< / span > < / h4 >
2013-11-28 15:57:09 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
< div class = "description" >
< p > The key of the BitmapData in the Cache, if stored there.< / p >
< / div >
2013-11-28 15:57:09 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-32" > line 32< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< / dl >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< / dd >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dt >
< h4 class = "name "
id="pixels">< span class = "type-signature" > < / span > pixels< span class = "type-signature" > :Uint32Array< / span > < / h4 >
< / dt >
< dd >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< div class = "description" >
< p > An Uint32Array view into BitmapData.buffer.< / p >
< / div >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dl class = "details" >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-74" > line 74< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-11-28 15:57:09 +00:00
< / dl >
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="texture">< span class = "type-signature" > < / span > texture< span class = "type-signature" > :< a href = "PIXI.Texture.html" > PIXI.Texture< / a > < / span > < / h4 >
2013-11-28 15:57:09 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
< div class = "description" >
< p > The PIXI.Texture.< / p >
< / div >
2013-11-28 15:57:09 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-107" > line 107< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-11-28 15:57:09 +00:00
< / dl >
2014-02-21 15:37:26 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="textureFrame">< span class = "type-signature" > < / span > textureFrame< span class = "type-signature" > :< a href = "Phaser.Frame.html" > Phaser.Frame< / a > < / span > < / h4 >
2014-02-21 15:37:26 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
< div class = "description" >
< p > The Frame this BitmapData uses for rendering.< / p >
< / div >
2014-02-21 15:37:26 +00:00
2014-11-15 20:01:46 +00:00
< dl class = "details" >
2014-02-21 15:37:26 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-113" > line 113< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-02-21 15:37:26 +00:00
< / dl >
2013-11-28 15:57:09 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="type">< span class = "type-signature" > < / span > type< span class = "type-signature" > :number< / span > < / h4 >
2013-11-28 15:57:09 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
< div class = "description" >
< p > The const type of this object.< / p >
< / div >
2013-11-28 15:57:09 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-121" > line 121< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
< / dl >
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
< / dd >
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
< dt >
< h4 class = "name "
id="width">< span class = "type-signature" > < / span > width< span class = "type-signature" > :number< / span > < / h4 >
< / dt >
< dd >
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
< div class = "description" >
< p > The width of the BitmapData in pixels.< / p >
< / div >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dl class = "details" >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-37" > line 37< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< / dl >
2013-11-28 15:57:09 +00:00
2014-02-21 15:37:26 +00:00
< / dd >
2014-04-29 14:39:02 +00:00
< / dl >
< h3 class = "subsection-title" > Methods< / h3 >
< dl >
2014-02-21 15:37:26 +00:00
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
2014-12-03 10:39:11 +00:00
id="getTransform">< span class = "type-signature" > < static> < / span > getTransform< span class = "signature" > (translateX, translateY, scaleX, scaleY, skewX, skewY)< / span > < span class = "type-signature" > → {object}< / span > < / h4 >
2014-02-21 15:37:26 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-02-21 15:37:26 +00:00
< div class = "description" >
2014-09-09 14:36:56 +00:00
< p > Gets a JavaScript object that has 6 properties set that are used by BitmapData in a transform.< / p >
2014-02-21 15:37:26 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > translateX< / code > < / td >
2014-02-21 15:37:26 +00:00
< td class = "type" >
2014-09-09 14:36:56 +00:00
< span class = "param-type" > number< / span >
2014-02-21 15:37:26 +00:00
2014-09-09 14:36:56 +00:00
< / td >
2014-02-21 15:37:26 +00:00
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The x translate value.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > translateY< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
2014-02-21 15:37:26 +00:00
< / td >
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The y translate value.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > scaleX< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "description last" > < p > The scale x value.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > scaleY< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "description last" > < p > The scale y value.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > skewX< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "description last" > < p > The skew x value.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > skewY< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "description last" > < p > The skew y value.< / p > < / td >
2014-02-21 15:37:26 +00:00
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
2014-12-03 10:39:11 +00:00
< span class = "param-type" > object< / span >
2014-11-15 20:01:46 +00:00
-
< / div >
< div class = "returns-desc param-desc" >
< p > A JavaScript object containing all of the properties BitmapData needs for transforms.< / p >
< / div >
< / div >
2014-02-21 15:37:26 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1851" > line 1851< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-02-21 15:37:26 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-02-21 15:37:26 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="add">< span class = "type-signature" > < / span > add< span class = "signature" > (object)< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-07-10 19:31:11 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-07-10 19:31:11 +00:00
< div class = "description" >
2014-09-09 14:36:56 +00:00
< p > Updates the given objects so that they use this BitmapData as their texture. This will replace any texture they will currently have set.< / p >
2014-07-10 19:31:11 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > object< / code > < / td >
2014-07-10 19:31:11 +00:00
< td class = "type" >
2014-09-09 14:36:56 +00:00
< span class = "param-type" > < a href = "Phaser.Sprite.html" > Phaser.Sprite< / a > < / span >
|
2014-07-10 19:31:11 +00:00
2014-11-15 20:01:46 +00:00
< span class = "param-type" > Array.< < a href = "Phaser.Sprite.html" > Phaser.Sprite< / a > >< / span >
2014-09-09 14:36:56 +00:00
|
2014-07-10 19:31:11 +00:00
2014-09-09 14:36:56 +00:00
< span class = "param-type" > < a href = "Phaser.Image.html" > Phaser.Image< / a > < / span >
|
2014-07-10 19:31:11 +00:00
2014-11-15 20:01:46 +00:00
< span class = "param-type" > Array.< < a href = "Phaser.Image.html" > Phaser.Image< / a > >< / span >
2014-07-10 19:31:11 +00:00
< / td >
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > Either a single Sprite/Image or an Array of Sprites/Images.< / p > < / td >
2014-07-10 19:31:11 +00:00
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-07-10 19:31:11 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-206" > line 206< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-07-10 19:31:11 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-07-10 19:31:11 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="addToWorld">< span class = "type-signature" > < / span > addToWorld< span class = "signature" > (< span class = "optional" > x< / span > , < span class = "optional" > y< / span > , < span class = "optional" > anchorX< / span > , < span class = "optional" > anchorY< / span > , < span class = "optional" > scaleX< / span > , < span class = "optional" > scaleY< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.Image.html" > Phaser.Image< / a > }< / span > < / h4 >
2014-02-21 15:37:26 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-02-21 15:37:26 +00:00
< div class = "description" >
2014-09-09 14:36:56 +00:00
< p > Creates a new Phaser.Image object, assigns this BitmapData to be its texture, adds it to the world then returns it.< / p >
2014-02-21 15:37:26 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
2014-07-10 19:31:11 +00:00
< th > Argument< / th >
2014-02-21 15:37:26 +00:00
2014-09-09 14:36:56 +00:00
< th > Default< / th >
2014-02-21 15:37:26 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > x< / code > < / td >
2014-02-21 15:37:26 +00:00
< td class = "type" >
2014-09-09 14:36:56 +00:00
< span class = "param-type" > number< / span >
2014-02-21 15:37:26 +00:00
< / td >
2014-07-10 19:31:11 +00:00
< td class = "attributes" >
2014-09-09 14:36:56 +00:00
< optional>< br >
2014-07-10 19:31:11 +00:00
< / td >
2014-02-21 15:37:26 +00:00
2014-09-09 14:36:56 +00:00
< td class = "default" >
0
< / td >
2014-02-21 15:37:26 +00:00
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The x coordinate to place the Image at.< / p > < / td >
2014-02-21 15:37:26 +00:00
< / tr >
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > y< / code > < / td >
2014-02-21 15:37:26 +00:00
< td class = "type" >
2014-09-09 14:36:56 +00:00
< span class = "param-type" > number< / span >
2014-07-10 19:31:11 +00:00
2014-09-09 14:36:56 +00:00
< / td >
2014-07-10 19:31:11 +00:00
2014-09-09 14:36:56 +00:00
< td class = "attributes" >
< optional>< br >
2014-02-21 15:37:26 +00:00
2014-09-09 14:36:56 +00:00
< / td >
< td class = "default" >
0
< / td >
< td class = "description last" > < p > The y coordinate to place the Image at.< / p > < / td >
< / tr >
2014-07-10 19:31:11 +00:00
2014-09-09 14:36:56 +00:00
< tr >
< td class = "name" > < code > anchorX< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
2014-07-10 19:31:11 +00:00
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
2014-09-09 14:36:56 +00:00
< td class = "default" >
0
< / td >
2014-07-10 19:31:11 +00:00
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > Set the x anchor point of the Image. A value between 0 and 1, where 0 is the top-left and 1 is bottom-right.< / p > < / td >
2014-07-10 19:31:11 +00:00
< / tr >
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > anchorY< / code > < / td >
2014-07-10 19:31:11 +00:00
< td class = "type" >
2014-09-09 14:36:56 +00:00
< span class = "param-type" > number< / span >
2014-07-10 19:31:11 +00:00
< / td >
2014-02-21 15:37:26 +00:00
2014-07-10 19:31:11 +00:00
< td class = "attributes" >
< optional>< br >
< / td >
2014-09-09 14:36:56 +00:00
< td class = "default" >
0
< / td >
2014-07-10 19:31:11 +00:00
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > Set the y anchor point of the Image. A value between 0 and 1, where 0 is the top-left and 1 is bottom-right.< / p > < / td >
2014-07-10 19:31:11 +00:00
< / tr >
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > scaleX< / code > < / td >
2014-07-10 19:31:11 +00:00
< td class = "type" >
2014-09-09 14:36:56 +00:00
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
1
< / td >
< td class = "description last" > < p > The horizontal scale factor of the Image. A value of 1 means no scaling. 2 would be twice the size, and so on.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > scaleY< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
2014-07-10 19:31:11 +00:00
< / td >
< td class = "attributes" >
< optional>< br >
2014-02-21 15:37:26 +00:00
2014-07-10 19:31:11 +00:00
2014-02-21 15:37:26 +00:00
2014-07-10 19:31:11 +00:00
< / td >
2014-02-21 15:37:26 +00:00
2014-09-09 14:36:56 +00:00
< td class = "default" >
1
< / td >
2014-02-21 15:37:26 +00:00
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The vertical scale factor of the Image. A value of 1 means no scaling. 2 would be twice the size, and so on.< / p > < / td >
2014-02-21 15:37:26 +00:00
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.Image.html" > Phaser.Image< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > The newly added Image object.< / p >
< / div >
< / div >
2014-02-21 15:37:26 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-931" > line 931< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-02-21 15:37:26 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-02-21 15:37:26 +00:00
2013-11-28 15:57:09 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="alphaMask">< span class = "type-signature" > < / span > alphaMask< span class = "signature" > (source, < span class = "optional" > mask< / span > , < span class = "optional" > sourceRect< / span > , < span class = "optional" > maskRect< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2013-11-28 15:57:09 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
< div class = "description" >
2014-09-09 14:36:56 +00:00
< p > Draws the image onto this BitmapData using an image as an alpha mask.< / p >
2013-11-28 15:57:09 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
2014-04-29 14:39:02 +00:00
< th > Argument< / th >
2013-11-28 15:57:09 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > source< / code > < / td >
2013-11-28 15:57:09 +00:00
< td class = "type" >
2014-09-09 14:36:56 +00:00
< span class = "param-type" > < a href = "Phaser.Sprite.html" > Phaser.Sprite< / a > < / span >
|
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< span class = "param-type" > < a href = "Phaser.Image.html" > Phaser.Image< / a > < / span >
|
2013-11-28 15:57:09 +00:00
2014-09-09 14:36:56 +00:00
< span class = "param-type" > < a href = "Phaser.Text.html" > Phaser.Text< / a > < / span >
|
2013-11-28 15:57:09 +00:00
2014-09-09 14:36:56 +00:00
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
|
2013-11-28 15:57:09 +00:00
2014-10-22 20:49:44 +00:00
< span class = "param-type" > Image< / span >
2014-09-09 14:36:56 +00:00
|
2013-11-28 15:57:09 +00:00
2014-09-09 14:36:56 +00:00
< span class = "param-type" > HTMLCanvasElement< / span >
|
2013-11-28 15:57:09 +00:00
2014-09-09 14:36:56 +00:00
< span class = "param-type" > string< / span >
2013-11-28 15:57:09 +00:00
< / td >
2014-04-29 14:39:02 +00:00
< td class = "attributes" >
< / td >
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The source to copy from. If you give a string it will try and find the Image in the Game.Cache first. This is quite expensive so try to provide the image itself.< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > mask< / code > < / td >
2014-04-29 14:39:02 +00:00
< td class = "type" >
2014-09-09 14:36:56 +00:00
< span class = "param-type" > < a href = "Phaser.Sprite.html" > Phaser.Sprite< / a > < / span >
|
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< span class = "param-type" > < a href = "Phaser.Image.html" > Phaser.Image< / a > < / span >
|
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< span class = "param-type" > < a href = "Phaser.Text.html" > Phaser.Text< / a > < / span >
|
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
|
2014-04-29 14:39:02 +00:00
2014-10-22 20:49:44 +00:00
< span class = "param-type" > Image< / span >
2014-09-09 14:36:56 +00:00
|
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< span class = "param-type" > HTMLCanvasElement< / span >
|
2014-04-29 14:39:02 +00:00
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
2013-11-28 15:57:09 +00:00
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The object to be used as the mask. If you give a string it will try and find the Image in the Game.Cache first. This is quite expensive so try to provide the image itself. If you don't provide a mask it will use this BitmapData as the mask.< / p > < / td >
2013-11-28 15:57:09 +00:00
< / tr >
2014-10-09 15:12:53 +00:00
< tr >
< td class = "name" > < code > sourceRect< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Rectangle.html" > Phaser.Rectangle< / a > < / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > < p > A Rectangle where x/y define the coordinates to draw the Source image to and width/height define the size.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > maskRect< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Rectangle.html" > Phaser.Rectangle< / a > < / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > < p > A Rectangle where x/y define the coordinates to draw the Mask image to and width/height define the size.< / p > < / td >
< / tr >
2014-02-18 03:01:51 +00:00
< / tbody >
< / table >
2013-11-28 15:57:09 +00:00
2014-02-18 03:01:51 +00:00
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-02-18 03:01:51 +00:00
< dl class = "details" >
2013-11-28 15:57:09 +00:00
2014-02-18 03:01:51 +00:00
2013-11-28 15:57:09 +00:00
2014-02-18 03:01:51 +00:00
2013-11-28 15:57:09 +00:00
2014-02-18 03:01:51 +00:00
2013-11-28 15:57:09 +00:00
2014-02-18 03:01:51 +00:00
2013-11-28 15:57:09 +00:00
2014-02-18 03:01:51 +00:00
2013-11-28 15:57:09 +00:00
2014-02-18 03:01:51 +00:00
2013-11-28 15:57:09 +00:00
2014-02-18 03:01:51 +00:00
2013-11-28 15:57:09 +00:00
2014-02-18 03:01:51 +00:00
2013-11-28 15:57:09 +00:00
2014-02-18 03:01:51 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1246" > line 1246< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-02-18 03:01:51 +00:00
2013-11-28 15:57:09 +00:00
2014-02-18 03:01:51 +00:00
2013-11-28 15:57:09 +00:00
2014-02-18 03:01:51 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-02-18 03:01:51 +00:00
2014-04-29 14:39:02 +00:00
< / dd >
2013-11-28 15:57:09 +00:00
2014-02-18 03:01:51 +00:00
2013-11-28 15:57:09 +00:00
2014-02-18 03:01:51 +00:00
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendAdd">< span class = "type-signature" > < / span > blendAdd< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-02-18 03:01:51 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-02-18 03:01:51 +00:00
< div class = "description" >
2014-09-09 14:36:56 +00:00
< p > Sets the blend mode to 'lighter'< / p >
2014-02-18 03:01:51 +00:00
< / div >
2013-11-28 15:57:09 +00:00
2014-02-18 03:01:51 +00:00
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-04-29 14:39:02 +00:00
< dl class = "details" >
2014-02-18 03:01:51 +00:00
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1621" > line 1621< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< / dl >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< / dd >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendColor">< span class = "type-signature" > < / span > blendColor< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-04-29 14:39:02 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< div class = "description" >
2014-09-09 14:36:56 +00:00
< p > Sets the blend mode to 'color'< / p >
2014-04-29 14:39:02 +00:00
< / div >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2013-11-28 15:57:09 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1803" > line 1803< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-11-28 15:57:09 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendColorBurn">< span class = "type-signature" > < / span > blendColorBurn< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'color-burn'< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1712" > line 1712< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendColorDodge">< span class = "type-signature" > < / span > blendColorDodge< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'color-dodge'< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1699" > line 1699< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendDarken">< span class = "type-signature" > < / span > blendDarken< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'darken'< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1673" > line 1673< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendDestinationAtop">< span class = "type-signature" > < / span > blendDestinationAtop< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'destination-atop'< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1595" > line 1595< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendDestinationIn">< span class = "type-signature" > < / span > blendDestinationIn< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'destination-in'< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1569" > line 1569< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendDestinationOut">< span class = "type-signature" > < / span > blendDestinationOut< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'destination-out'< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1582" > line 1582< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendDestinationOver">< span class = "type-signature" > < / span > blendDestinationOver< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'destination-over'< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
-
< / div >
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
< / div >
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
< dl class = "details" >
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1556" > line 1556< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendDifference">< span class = "type-signature" > < / span > blendDifference< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'difference'< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1751" > line 1751< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendExclusion">< span class = "type-signature" > < / span > blendExclusion< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'exclusion'< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1764" > line 1764< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendHardLight">< span class = "type-signature" > < / span > blendHardLight< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'hard-light'< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1725" > line 1725< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendHue">< span class = "type-signature" > < / span > blendHue< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'hue'< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1777" > line 1777< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendLighten">< span class = "type-signature" > < / span > blendLighten< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'lighten'< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1686" > line 1686< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendLuminosity">< span class = "type-signature" > < / span > blendLuminosity< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'luminosity'< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1816" > line 1816< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendMultiply">< span class = "type-signature" > < / span > blendMultiply< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'multiply'< / p >
< / div >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
-
< / div >
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
< / div >
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
< dl class = "details" >
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1634" > line 1634< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
< / dl >
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendOverlay">< span class = "type-signature" > < / span > blendOverlay< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'overlay'< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1660" > line 1660< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendReset">< span class = "type-signature" > < / span > blendReset< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Resets the blend mode (effectively sets it to 'source-over')< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1491" > line 1491< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendSaturation">< span class = "type-signature" > < / span > blendSaturation< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'saturation'< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1790" > line 1790< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendScreen">< span class = "type-signature" > < / span > blendScreen< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'screen'< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1647" > line 1647< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendSoftLight">< span class = "type-signature" > < / span > blendSoftLight< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'soft-light'< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1738" > line 1738< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendSourceAtop">< span class = "type-signature" > < / span > blendSourceAtop< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'source-atop'< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1543" > line 1543< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendSourceIn">< span class = "type-signature" > < / span > blendSourceIn< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'source-in'< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1517" > line 1517< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendSourceOut">< span class = "type-signature" > < / span > blendSourceOut< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'source-out'< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1530" > line 1530< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendSourceOver">< span class = "type-signature" > < / span > blendSourceOver< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'source-over'< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1504" > line 1504< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="blendXor">< span class = "type-signature" > < / span > blendXor< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Sets the blend mode to 'xor'< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1608" > line 1608< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="circle">< span class = "type-signature" > < / span > circle< span class = "signature" > (x, y, radius, < span class = "optional" > fillStyle< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Draws a filled Circle to the BitmapData at the given x, y coordinates and radius in size.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > x< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > < p > The x coordinate to draw the Circle at. This is the center of the circle.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > y< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > < p > The y coordinate to draw the Circle at. This is the center of the circle.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > radius< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > < p > The radius of the Circle in pixels. The radius is half the diameter.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > fillStyle< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > < p > If set the context fillStyle will be set to this value before the circle is drawn.< / p > < / td >
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1396" > line 1396< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="clear">< span class = "type-signature" > < / span > clear< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Clears the BitmapData context using a clearRect.< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-275" > line 275< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="cls">< span class = "type-signature" > < / span > cls< span class = "signature" > ()< / span > < span class = "type-signature" > < / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Clears the BitmapData context using a clearRect.< / p >
< / div >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-269" > line 269< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="copy">< span class = "type-signature" > < / span > copy< span class = "signature" > (< span class = "optional" > source< / span > , < span class = "optional" > x< / span > , < span class = "optional" > y< / span > , < span class = "optional" > width< / span > , < span class = "optional" > height< / span > , < span class = "optional" > tx< / span > , < span class = "optional" > ty< / span > , < span class = "optional" > newWidth< / span > , < span class = "optional" > newHeight< / span > , < span class = "optional" > rotate< / span > , < span class = "optional" > anchorX< / span > , < span class = "optional" > anchorY< / span > , < span class = "optional" > scaleX< / span > , < span class = "optional" > scaleY< / span > , < span class = "optional" > alpha< / span > , < span class = "optional" > blendMode< / span > , < span class = "optional" > roundPx< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< div class = "description" >
< p > Copies a rectangular area from the source object to this BitmapData. If you give < code > null< / code > as the source it will copy from itself.
You can optionally resize, translate, rotate, scale, alpha or blend as it's drawn.
All rotation, scaling and drawing takes place around the regions center point by default, but can be changed with the anchor parameters.
Note that the source image can also be this BitmapData, which can create some interesting effects.< / p >
< p > This method has a lot of parameters for maximum control.
You can use the more friendly methods like < code > copyRect< / code > and < code > draw< / code > to avoid having to remember them all.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > source< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Sprite.html" > Phaser.Sprite< / a > < / span >
|
< span class = "param-type" > < a href = "Phaser.Image.html" > Phaser.Image< / a > < / span >
|
< span class = "param-type" > < a href = "Phaser.Text.html" > Phaser.Text< / a > < / span >
|
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
|
2014-10-22 20:49:44 +00:00
< span class = "param-type" > Image< / span >
2014-09-09 14:36:56 +00:00
|
< span class = "param-type" > HTMLCanvasElement< / span >
|
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The source to copy from. If you give a string it will try and find the Image in the Game.Cache first. This is quite expensive so try to provide the image itself.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > x< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
0
< / td >
< td class = "description last" > < p > The x coordinate representing the top-left of the region to copy from the source image.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > y< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
0
< / td >
< td class = "description last" > < p > The y coordinate representing the top-left of the region to copy from the source image.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > width< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The width of the region to copy from the source image. If not specified it will use the full source image width.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > height< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The height of the region to copy from the source image. If not specified it will use the full source image height.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > tx< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
< / td >
2015-01-06 06:57:25 +00:00
< td class = "description last" > < p > The x coordinate to translate to before drawing. If not specified it will default to the < code > x< / code > parameter. If < code > null< / code > and < code > source< / code > is a Display Object, it will default to < code > source.x< / code > .< / p > < / td >
2014-09-09 14:36:56 +00:00
< / tr >
< tr >
< td class = "name" > < code > ty< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
< / td >
2015-01-06 06:57:25 +00:00
< td class = "description last" > < p > The y coordinate to translate to before drawing. If not specified it will default to the < code > y< / code > parameter. If < code > null< / code > and < code > source< / code > is a Display Object, it will default to < code > source.y< / code > .< / p > < / td >
2014-09-09 14:36:56 +00:00
< / tr >
< tr >
< td class = "name" > < code > newWidth< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The new width of the block being copied. If not specified it will default to the < code > width< / code > parameter.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > newHeight< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The new height of the block being copied. If not specified it will default to the < code > height< / code > parameter.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > rotate< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
0
< / td >
< td class = "description last" > < p > The angle in radians to rotate the block to before drawing. Rotation takes place around the center by default, but can be changed with the < code > anchor< / code > parameters.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > anchorX< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
0
< / td >
< td class = "description last" > < p > The anchor point around which the block is rotated and scaled. A value between 0 and 1, where 0 is the top-left and 1 is bottom-right.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > anchorY< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
0
< / td >
< td class = "description last" > < p > The anchor point around which the block is rotated and scaled. A value between 0 and 1, where 0 is the top-left and 1 is bottom-right.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > scaleX< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
1
< / td >
< td class = "description last" > < p > The horizontal scale factor of the block. A value of 1 means no scaling. 2 would be twice the size, and so on.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > scaleY< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
1
< / td >
< td class = "description last" > < p > The vertical scale factor of the block. A value of 1 means no scaling. 2 would be twice the size, and so on.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > alpha< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
1
< / td >
< td class = "description last" > < p > The alpha that will be set on the context before drawing. A value between 0 (fully transparent) and 1, opaque.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > blendMode< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
null
< / td >
< td class = "description last" > < p > The composite blend mode that will be used when drawing. The default is no blend mode at all.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > roundPx< / code > < / td >
< td class = "type" >
< span class = "param-type" > boolean< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
false
< / td >
< td class = "description last" > < p > Should the x and y values be rounded to integers before drawing? This prevents anti-aliasing in some instances.< / p > < / td >
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-09-09 14:36:56 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-957" > line 957< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="copyRect">< span class = "type-signature" > < / span > copyRect< span class = "signature" > (source, area, x, y, < span class = "optional" > alpha< / span > , < span class = "optional" > blendMode< / span > , < span class = "optional" > roundPx< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-09-09 14:36:56 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2013-11-28 15:57:09 +00:00
< div class = "description" >
2014-09-09 14:36:56 +00:00
< p > Copies the area defined by the Rectangle parameter from the source image to this BitmapData at the given location.< / p >
2013-11-28 15:57:09 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
2014-09-09 14:36:56 +00:00
< th > Argument< / th >
2013-11-28 15:57:09 +00:00
2014-09-09 14:36:56 +00:00
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > source< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Sprite.html" > Phaser.Sprite< / a > < / span >
|
< span class = "param-type" > < a href = "Phaser.Image.html" > Phaser.Image< / a > < / span >
|
< span class = "param-type" > < a href = "Phaser.Text.html" > Phaser.Text< / a > < / span >
|
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
|
2014-10-22 20:49:44 +00:00
< span class = "param-type" > Image< / span >
2014-09-09 14:36:56 +00:00
|
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The Image to copy from. If you give a string it will try and find the Image in the Game.Cache.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > area< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Rectangle.html" > Phaser.Rectangle< / a > < / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The Rectangle region to copy from the source image.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > x< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
2013-11-28 15:57:09 +00:00
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The destination x coordinate to copy the image to.< / p > < / td >
< / tr >
2013-11-28 15:57:09 +00:00
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > y< / code > < / td >
2014-04-29 14:39:02 +00:00
< td class = "type" >
2014-09-09 14:36:56 +00:00
< span class = "param-type" > number< / span >
2014-07-10 19:31:11 +00:00
2014-09-09 14:36:56 +00:00
< / td >
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< td class = "attributes" >
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< / td >
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< td class = "default" >
< / td >
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The destination y coordinate to copy the image to.< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > alpha< / code > < / td >
2013-11-28 15:57:09 +00:00
< td class = "type" >
2014-09-09 14:36:56 +00:00
< span class = "param-type" > number< / span >
2013-11-28 15:57:09 +00:00
< / td >
2014-09-09 14:36:56 +00:00
< td class = "attributes" >
< optional>< br >
< / td >
2013-11-28 15:57:09 +00:00
2014-09-09 14:36:56 +00:00
< td class = "default" >
1
< / td >
2013-11-28 15:57:09 +00:00
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The alpha that will be set on the context before drawing. A value between 0 (fully transparent) and 1, opaque.< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > blendMode< / code > < / td >
2014-04-29 14:39:02 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
2014-09-09 14:36:56 +00:00
< td class = "attributes" >
< optional>< br >
< / td >
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< td class = "default" >
null
< / td >
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The composite blend mode that will be used when drawing. The default is no blend mode at all.< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > roundPx< / code > < / td >
2014-04-29 14:39:02 +00:00
< td class = "type" >
2014-09-09 14:36:56 +00:00
< span class = "param-type" > boolean< / span >
2014-04-29 14:39:02 +00:00
< / td >
2014-09-09 14:36:56 +00:00
< td class = "attributes" >
< optional>< br >
< / td >
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< td class = "default" >
false
< / td >
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > Should the x and y values be rounded to integers before drawing? This prevents anti-aliasing in some instances.< / p > < / td >
2013-11-28 15:57:09 +00:00
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2013-11-28 15:57:09 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1153" > line 1153< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-11-28 15:57:09 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2014-02-18 03:01:51 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="draw">< span class = "type-signature" > < / span > draw< span class = "signature" > (source, < span class = "optional" > x< / span > , < span class = "optional" > y< / span > , < span class = "optional" > width< / span > , < span class = "optional" > height< / span > , < span class = "optional" > blendMode< / span > , < span class = "optional" > roundPx< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-02-18 03:01:51 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-02-18 03:01:51 +00:00
2014-04-29 14:39:02 +00:00
< div class = "description" >
2014-09-09 14:36:56 +00:00
< p > Draws the given Phaser.Sprite, Phaser.Image or Phaser.Text to this BitmapData at the coordinates specified.
You can use the optional width and height values to 'stretch' the sprite as it is drawn. This uses drawImage stretching, not scaling.
When drawing it will take into account the Sprites rotation, scale and alpha values.< / p >
2014-04-29 14:39:02 +00:00
< / div >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > source< / code > < / td >
< td class = "type" >
2014-07-10 19:31:11 +00:00
< span class = "param-type" > < a href = "Phaser.Sprite.html" > Phaser.Sprite< / a > < / span >
|
< span class = "param-type" > < a href = "Phaser.Image.html" > Phaser.Image< / a > < / span >
|
2014-09-09 14:36:56 +00:00
< span class = "param-type" > < a href = "Phaser.Text.html" > Phaser.Text< / a > < / span >
2014-04-29 14:39:02 +00:00
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The Sprite, Image or Text object to draw onto this BitmapData.< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< tr >
< td class = "name" > < code > x< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
0
< / td >
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The x coordinate to translate to before drawing. If not specified it will default to < code > source.x< / code > .< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< tr >
< td class = "name" > < code > y< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
0
< / td >
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The y coordinate to translate to before drawing. If not specified it will default to < code > source.y< / code > .< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
2014-07-10 19:31:11 +00:00
< tr >
< td class = "name" > < code > width< / code > < / td >
2014-09-09 14:36:56 +00:00
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< / td >
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< td class = "attributes" >
< optional>< br >
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The new width of the Sprite being copied. If not specified it will default to < code > source.width< / code > .< / p > < / td >
< / tr >
2014-04-29 14:39:02 +00:00
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > height< / code > < / td >
2014-04-29 14:39:02 +00:00
< td class = "type" >
2014-09-09 14:36:56 +00:00
< span class = "param-type" > number< / span >
2014-04-29 14:39:02 +00:00
< / td >
< td class = "attributes" >
2014-09-09 14:36:56 +00:00
< optional>< br >
2014-04-29 14:39:02 +00:00
< / td >
< td class = "default" >
< / td >
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The new height of the Sprite being copied. If not specified it will default to < code > source.height< / code > .< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > blendMode< / code > < / td >
2014-04-29 14:39:02 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
2014-09-09 14:36:56 +00:00
null
2014-04-29 14:39:02 +00:00
< / td >
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The composite blend mode that will be used when drawing the Sprite. The default is no blend mode at all.< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > roundPx< / code > < / td >
2014-04-29 14:39:02 +00:00
< td class = "type" >
2014-09-09 14:36:56 +00:00
< span class = "param-type" > boolean< / span >
2014-04-29 14:39:02 +00:00
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
2014-09-09 14:36:56 +00:00
false
2014-04-29 14:39:02 +00:00
< / td >
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > Should the x and y values be rounded to integers before drawing? This prevents anti-aliasing in some instances.< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
-
< / div >
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
< / div >
2014-04-29 14:39:02 +00:00
2014-07-10 19:31:11 +00:00
2014-11-15 20:01:46 +00:00
< dl class = "details" >
2014-07-10 19:31:11 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1172" > line 1172< / a >
2015-01-06 06:57:25 +00:00
< / dt >
< / dl >
< / dd >
< dt >
< h4 class = "name "
id="drawGroup">< span class = "type-signature" > < / span > drawGroup< span class = "signature" > (group, < span class = "optional" > blendMode< / span > , < span class = "optional" > roundPx< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > Draws the immediate children of a Phaser.Group to this BitmapData.
Children are only drawn if they have their < code > exists< / code > property set to < code > true< / code > .
The children will be drawn at their < code > x< / code > and < code > y< / code > world space coordinates. If this is outside the bounds of the BitmapData they won't be drawn.
When drawing it will take into account the child's rotation, scale and alpha values.
No iteration takes place. Groups nested inside other Groups will not be iterated through.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > group< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Group.html" > Phaser.Group< / a > < / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The Group to draw onto this BitmapData.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > blendMode< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
null
< / td >
< td class = "description last" > < p > The composite blend mode that will be used when drawing the Group children. The default is no blend mode at all.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > roundPx< / code > < / td >
< td class = "type" >
< span class = "param-type" > boolean< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
false
< / td >
< td class = "description last" > < p > Should the x and y values be rounded to integers before drawing? This prevents anti-aliasing in some instances.< / p > < / td >
< / tr >
< / tbody >
< / table >
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1194" > line 1194< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-07-10 19:31:11 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="extract">< span class = "type-signature" > < / span > extract< span class = "signature" > (destination, r, g, b, < span class = "optional" > a< / span > , < span class = "optional" > resize< / span > , < span class = "optional" > r2< / span > , < span class = "optional" > g2< / span > , < span class = "optional" > b2< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-07-10 19:31:11 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-07-10 19:31:11 +00:00
< div class = "description" >
< p > Scans this BitmapData for all pixels matching the given r,g,b values and then draws them into the given destination BitmapData.
The original BitmapData remains unchanged.
The destination BitmapData must be large enough to receive all of the pixels that are scanned unless the 'resize' parameter is true.
Although the destination BitmapData is returned from this method, it's actually modified directly in place, meaning this call is perfectly valid:
< code > picture.extract(mask, r, g, b)< / code >
You can specify optional r2, g2, b2 color values. If given the pixel written to the destination bitmap will be of the r2, g2, b2 color.
If not given it will be written as the same color it was extracted. You can provide one or more alternative colors, allowing you to tint
the color during extraction.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > destination< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The BitmapData that the extracted pixels will be drawn to.< / p > < / td >
2014-07-10 19:31:11 +00:00
< / tr >
< tr >
< td class = "name" > < code > r< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The red color component, in the range 0 - 255.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > g< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
2014-04-29 14:39:02 +00:00
2014-07-10 19:31:11 +00:00
< / td >
2014-04-29 14:39:02 +00:00
2014-07-10 19:31:11 +00:00
< td class = "attributes" >
2014-04-29 14:39:02 +00:00
2014-07-10 19:31:11 +00:00
2014-04-29 14:39:02 +00:00
2014-07-10 19:31:11 +00:00
< / td >
2014-04-29 14:39:02 +00:00
2014-07-10 19:31:11 +00:00
< td class = "default" >
< / td >
2014-04-29 14:39:02 +00:00
2014-07-10 19:31:11 +00:00
< td class = "description last" > < p > The green color component, in the range 0 - 255.< / p > < / td >
< / tr >
2014-04-29 14:39:02 +00:00
2014-07-10 19:31:11 +00:00
2014-04-29 14:39:02 +00:00
2014-07-10 19:31:11 +00:00
< tr >
< td class = "name" > < code > b< / code > < / td >
2014-04-29 14:39:02 +00:00
2014-07-10 19:31:11 +00:00
< td class = "type" >
2014-04-29 14:39:02 +00:00
2014-07-10 19:31:11 +00:00
< span class = "param-type" > number< / span >
2014-04-29 14:39:02 +00:00
2014-07-10 19:31:11 +00:00
< / td >
2014-04-29 14:39:02 +00:00
2014-07-10 19:31:11 +00:00
< td class = "attributes" >
2014-04-29 14:39:02 +00:00
2014-07-10 19:31:11 +00:00
2014-04-29 14:39:02 +00:00
2014-07-10 19:31:11 +00:00
< / td >
2014-04-29 14:39:02 +00:00
2014-07-10 19:31:11 +00:00
< td class = "default" >
< / td >
< td class = "description last" > < p > The blue color component, in the range 0 - 255.< / p > < / td >
< / tr >
2014-04-29 14:39:02 +00:00
< tr >
2014-07-10 19:31:11 +00:00
< td class = "name" > < code > a< / code > < / td >
2014-04-29 14:39:02 +00:00
< td class = "type" >
2014-07-10 19:31:11 +00:00
< span class = "param-type" > number< / span >
2014-04-29 14:39:02 +00:00
< / td >
< td class = "attributes" >
2014-07-10 19:31:11 +00:00
< optional>< br >
2014-04-29 14:39:02 +00:00
< / td >
< td class = "default" >
2014-07-10 19:31:11 +00:00
255
2014-04-29 14:39:02 +00:00
< / td >
2014-07-10 19:31:11 +00:00
< td class = "description last" > < p > The alpha color component, in the range 0 - 255 that the new pixel will be drawn at.< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< tr >
2014-07-10 19:31:11 +00:00
< td class = "name" > < code > resize< / code > < / td >
2014-04-29 14:39:02 +00:00
< td class = "type" >
2014-07-10 19:31:11 +00:00
< span class = "param-type" > boolean< / span >
2014-04-29 14:39:02 +00:00
< / td >
< td class = "attributes" >
2014-07-10 19:31:11 +00:00
< optional>< br >
2014-04-29 14:39:02 +00:00
< / td >
< td class = "default" >
2014-07-10 19:31:11 +00:00
false
2014-04-29 14:39:02 +00:00
< / td >
2014-07-10 19:31:11 +00:00
< td class = "description last" > < p > Should the destination BitmapData be resized to match this one before the pixels are copied?< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< tr >
2014-07-10 19:31:11 +00:00
< td class = "name" > < code > r2< / code > < / td >
2014-04-29 14:39:02 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
2014-07-10 19:31:11 +00:00
< optional>< br >
2014-04-29 14:39:02 +00:00
< / td >
< td class = "default" >
< / td >
2014-07-10 19:31:11 +00:00
< td class = "description last" > < p > An alternative red color component to be written to the destination, in the range 0 - 255.< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< tr >
2014-07-10 19:31:11 +00:00
< td class = "name" > < code > g2< / code > < / td >
2014-04-29 14:39:02 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
2014-07-10 19:31:11 +00:00
< optional>< br >
2014-04-29 14:39:02 +00:00
< / td >
< td class = "default" >
< / td >
2014-07-10 19:31:11 +00:00
< td class = "description last" > < p > An alternative green color component to be written to the destination, in the range 0 - 255.< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< tr >
2014-07-10 19:31:11 +00:00
< td class = "name" > < code > b2< / code > < / td >
2014-04-29 14:39:02 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
< / td >
2014-07-10 19:31:11 +00:00
< td class = "description last" > < p > An alternative blue color component to be written to the destination, in the range 0 - 255.< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > The BitmapData that the extract pixels were drawn on.< / p >
< / div >
< / div >
2014-04-29 14:39:02 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1280" > line 1280< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-04-29 14:39:02 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="fill">< span class = "type-signature" > < / span > fill< span class = "signature" > (r, g, b, < span class = "optional" > a< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-04-29 14:39:02 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< div class = "description" >
< p > Fills the BitmapData with the given color.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > r< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The red color value, between 0 and 0xFF (255).< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > g< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The green color value, between 0 and 0xFF (255).< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > b< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The blue color value, between 0 and 0xFF (255).< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > a< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
1
< / td >
< td class = "description last" > < p > The alpha color value, between 0 and 1.< / p > < / td >
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-04-29 14:39:02 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-291" > line 291< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-04-29 14:39:02 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
2014-10-22 20:49:44 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="getBounds">< span class = "type-signature" > < / span > getBounds< span class = "signature" > (< span class = "optional" > rect< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.Rectangle.html" > Phaser.Rectangle< / a > }< / span > < / h4 >
2014-10-22 20:49:44 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-10-22 20:49:44 +00:00
< div class = "description" >
< p > Scans the BitmapData and calculates the bounds. This is a rectangle that defines the extent of all non-transparent pixels.
The rectangle returned will extend from the top-left of the image to the bottom-right, exluding transparent pixels.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > rect< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Rectangle.html" > Phaser.Rectangle< / a > < / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > < p > If provided this Rectangle object will be populated with the bounds, otherwise a new object will be created.< / p > < / td >
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.Rectangle.html" > Phaser.Rectangle< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > A Rectangle whose dimensions encompass the full extent of non-transparent pixels in this BitmapData.< / p >
< / div >
< / div >
2014-10-22 20:49:44 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-903" > line 903< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-10-22 20:49:44 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-10-22 20:49:44 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="getFirstPixel">< span class = "type-signature" > < / span > getFirstPixel< span class = "signature" > (< span class = "optional" > direction< / span > )< / span > < span class = "type-signature" > → {object}< / span > < / h4 >
2014-10-22 20:49:44 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-10-22 20:49:44 +00:00
< div class = "description" >
< p > Scans the BitmapData, pixel by pixel, until it encounters a pixel that isn't transparent (i.e. has an alpha value > 0).
It then stops scanning and returns an object containing the colour of the pixel in r, g and b properties and the location in the x and y properties.< / p >
< p > The direction parameter controls from which direction it should start the scan:< / p >
< p > 0 = top to bottom
1 = bottom to top
2 = left to right
3 = right to left< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > direction< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
0
< / td >
< td class = "description last" > < p > The direction in which to scan for the first pixel. 0 = top to bottom, 1 = bottom to top, 2 = left to right and 3 = right to left.< / p > < / td >
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > object< / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > Returns an object containing the colour of the pixel in the < code > r< / code > , < code > g< / code > and < code > b< / code > properties and the location in the < code > x< / code > and < code > y< / code > properties.< / p >
< / div >
< / div >
2014-10-22 20:49:44 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-820" > line 820< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-10-22 20:49:44 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-10-22 20:49:44 +00:00
2014-04-29 14:39:02 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="getPixel">< span class = "type-signature" > < / span > getPixel< span class = "signature" > (x, y, < span class = "optional" > out< / span > )< / span > < span class = "type-signature" > → {object}< / span > < / h4 >
2014-04-29 14:39:02 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< div class = "description" >
2014-05-20 09:12:48 +00:00
< p > Get the color of a specific pixel in the context into a color object.
If you have drawn anything to the BitmapData since it was created you must call BitmapData.update to refresh the array buffer,
otherwise this may return out of date color values, or worse - throw a run-time error as it tries to access an array element that doesn't exist.< / p >
2014-04-29 14:39:02 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > x< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > < p > The x coordinate of the pixel to be set. Must lay within the dimensions of this BitmapData.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > y< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > < p > The y coordinate of the pixel to be set. Must lay within the dimensions of this BitmapData.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > out< / code > < / td >
< td class = "type" >
< span class = "param-type" > object< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > < p > An object into which 4 properties will be created: r, g, b and a. If not provided a new object will be created.< / p > < / td >
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > object< / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > An object with the red, green, blue and alpha values set in the r, g, b and a properties.< / p >
< / div >
< / div >
2014-04-29 14:39:02 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-737" > line 737< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-04-29 14:39:02 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="getPixel32">< span class = "type-signature" > < / span > getPixel32< span class = "signature" > (x, y)< / span > < span class = "type-signature" > → {number}< / span > < / h4 >
2014-04-29 14:39:02 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< div class = "description" >
< p > Get the color of a specific pixel including its alpha value.
2014-05-20 09:12:48 +00:00
If you have drawn anything to the BitmapData since it was created you must call BitmapData.update to refresh the array buffer,
otherwise this may return out of date color values, or worse - throw a run-time error as it tries to access an array element that doesn't exist.
2014-04-29 14:39:02 +00:00
Note that on little-endian systems the format is 0xAABBGGRR and on big-endian the format is 0xRRGGBBAA.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > x< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "description last" > < p > The x coordinate of the pixel to be set. Must lay within the dimensions of this BitmapData.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > y< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "description last" > < p > The y coordinate of the pixel to be set. Must lay within the dimensions of this BitmapData.< / p > < / td >
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > number< / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > A native color value integer (format: 0xAARRGGBB)< / p >
< / div >
< / div >
2014-04-29 14:39:02 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-768" > line 768< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-04-29 14:39:02 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="getPixelRGB">< span class = "type-signature" > < / span > getPixelRGB< span class = "signature" > (x, y, < span class = "optional" > out< / span > , < span class = "optional" > hsl< / span > , < span class = "optional" > hsv< / span > )< / span > < span class = "type-signature" > → {object}< / span > < / h4 >
2014-04-29 14:39:02 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< div class = "description" >
2014-05-20 09:12:48 +00:00
< p > Get the color of a specific pixel including its alpha value as a color object containing r,g,b,a and rgba properties.
If you have drawn anything to the BitmapData since it was created you must call BitmapData.update to refresh the array buffer,
otherwise this may return out of date color values, or worse - throw a run-time error as it tries to access an array element that doesn't exist.< / p >
2014-04-29 14:39:02 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > x< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The x coordinate of the pixel to be set. Must lay within the dimensions of this BitmapData.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > y< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The y coordinate of the pixel to be set. Must lay within the dimensions of this BitmapData.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > out< / code > < / td >
< td class = "type" >
< span class = "param-type" > object< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > An object into which 3 properties will be created: r, g and b. If not provided a new object will be created.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > hsl< / code > < / td >
< td class = "type" >
< span class = "param-type" > boolean< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
false
< / td >
< td class = "description last" > < p > Also convert the rgb values into hsl?< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > hsv< / code > < / td >
< td class = "type" >
< span class = "param-type" > boolean< / span >
< / td >
< td class = "attributes" >
< optional>< br >
2014-09-09 14:36:56 +00:00
< / td >
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< td class = "default" >
false
< / td >
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > Also convert the rgb values into hsv?< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
< div class = "returns-type" >
< span class = "param-type" > object< / span >
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
-
< / div >
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
< div class = "returns-desc param-desc" >
< p > An object with the red, green and blue values set in the r, g and b properties.< / p >
< / div >
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
< / div >
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
< dl class = "details" >
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-788" > line 788< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
< / dl >
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
2014-07-10 19:31:11 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="getPixels">< span class = "type-signature" > < / span > getPixels< span class = "signature" > (rect)< / span > < span class = "type-signature" > → {ImageData}< / span > < / h4 >
2014-07-10 19:31:11 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-07-10 19:31:11 +00:00
< div class = "description" >
2014-09-09 14:36:56 +00:00
< p > Gets all the pixels from the region specified by the given Rectangle object.< / p >
2014-07-10 19:31:11 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > rect< / code > < / td >
2014-07-10 19:31:11 +00:00
< td class = "type" >
2014-09-09 14:36:56 +00:00
< span class = "param-type" > < a href = "Phaser.Rectangle.html" > Phaser.Rectangle< / a > < / span >
2014-07-10 19:31:11 +00:00
< / td >
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The Rectangle region to get.< / p > < / td >
2014-07-10 19:31:11 +00:00
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > ImageData< / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > Returns a ImageData object containing a Uint8ClampedArray data property.< / p >
< / div >
< / div >
2014-07-10 19:31:11 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-807" > line 807< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-07-10 19:31:11 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-07-10 19:31:11 +00:00
2014-04-29 14:39:02 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="load">< span class = "type-signature" > < / span > load< span class = "signature" > (source)< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-04-29 14:39:02 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< div class = "description" >
2014-09-09 14:36:56 +00:00
< p > Takes the given Game Object, resizes this BitmapData to match it and then draws it into this BitmapDatas canvas, ready for further processing.
The source game object is not modified by this operation.
If the source object uses a texture as part of a Texture Atlas or Sprite Sheet, only the current frame will be used for sizing.
If a string is given it will assume it's a cache key and look in Phaser.Cache for an image key matching the string.< / p >
2014-04-29 14:39:02 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
2014-09-09 14:36:56 +00:00
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< tbody >
2014-04-29 14:39:02 +00:00
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > source< / code > < / td >
2014-04-29 14:39:02 +00:00
< td class = "type" >
2014-09-09 14:36:56 +00:00
< span class = "param-type" > < a href = "Phaser.Sprite.html" > Phaser.Sprite< / a > < / span >
|
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< span class = "param-type" > < a href = "Phaser.Image.html" > Phaser.Image< / a > < / span >
|
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< span class = "param-type" > < a href = "Phaser.Text.html" > Phaser.Text< / a > < / span >
|
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
|
2014-10-22 20:49:44 +00:00
< span class = "param-type" > Image< / span >
2014-09-09 14:36:56 +00:00
|
< span class = "param-type" > HTMLCanvasElement< / span >
|
< span class = "param-type" > string< / span >
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< / td >
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The object that will be used to populate this BitmapData. If you give a string it will try and find the Image in the Game.Cache first.< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-04-29 14:39:02 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-234" > line 234< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-04-29 14:39:02 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="processPixel">< span class = "type-signature" > < / span > processPixel< span class = "signature" > (callback, callbackContext, < span class = "optional" > x< / span > , < span class = "optional" > y< / span > , < span class = "optional" > width< / span > , < span class = "optional" > height< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-04-29 14:39:02 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< div class = "description" >
2014-09-09 14:36:56 +00:00
< p > Scans through the area specified in this BitmapData and sends the color for every pixel to the given callback along with its x and y coordinates.
Whatever value the callback returns is set as the new color for that pixel, unless it returns the same color, in which case it's skipped.
Note that the format of the color received will be different depending on if the system is big or little endian.
It is expected that your callback will deal with endianess. If you'd rather Phaser did it then use processPixelRGB instead.
The callback will also be sent the pixels x and y coordinates respectively.< / p >
2014-04-29 14:39:02 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > callback< / code > < / td >
< td class = "type" >
< span class = "param-type" > function< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The callback that will be sent each pixel color to be processed.< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< tr >
< td class = "name" > < code > callbackContext< / code > < / td >
< td class = "type" >
< span class = "param-type" > object< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The context under which the callback will be called.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > x< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
0
< / td >
< td class = "description last" > < p > The x coordinate of the top-left of the region to process from.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > y< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
0
< / td >
< td class = "description last" > < p > The y coordinate of the top-left of the region to process from.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > width< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The width of the region to process.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > height< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The height of the region to process.< / p > < / td >
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-04-29 14:39:02 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-451" > line 451< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-05-20 09:12:48 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-05-20 09:12:48 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="processPixelRGB">< span class = "type-signature" > < / span > processPixelRGB< span class = "signature" > (callback, callbackContext, < span class = "optional" > x< / span > , < span class = "optional" > y< / span > , < span class = "optional" > width< / span > , < span class = "optional" > height< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-05-20 09:12:48 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-05-20 09:12:48 +00:00
< div class = "description" >
2014-09-09 14:36:56 +00:00
< p > Scans through the area specified in this BitmapData and sends a color object for every pixel to the given callback.
The callback will be sent a color object with 6 properties: < code > { r: number, g: number, b: number, a: number, color: number, rgba: string }< / code > .
Where r, g, b and a are integers between 0 and 255 representing the color component values for red, green, blue and alpha.
The < code > color< / code > property is an Int32 of the full color. Note the endianess of this will change per system.
The < code > rgba< / code > property is a CSS style rgba() string which can be used with context.fillStyle calls, among others.
The callback will also be sent the pixels x and y coordinates respectively.
The callback must return either < code > false< / code > , in which case no change will be made to the pixel, or a new color object.
If a new color object is returned the pixel will be set to the r, g, b and a color values given within it.< / p >
2014-05-20 09:12:48 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
2014-09-09 14:36:56 +00:00
< th > Default< / th >
2014-05-20 09:12:48 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > callback< / code > < / td >
2014-05-20 09:12:48 +00:00
< td class = "type" >
2014-09-09 14:36:56 +00:00
< span class = "param-type" > function< / span >
2014-05-20 09:12:48 +00:00
< / td >
< td class = "attributes" >
< / td >
2014-09-09 14:36:56 +00:00
< td class = "default" >
< / td >
2014-05-20 09:12:48 +00:00
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The callback that will be sent each pixel color object to be processed.< / p > < / td >
2014-05-20 09:12:48 +00:00
< / tr >
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > callbackContext< / code > < / td >
< td class = "type" >
< span class = "param-type" > object< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The context under which the callback will be called.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > x< / code > < / td >
2014-05-20 09:12:48 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
2014-09-09 14:36:56 +00:00
< optional>< br >
2014-05-20 09:12:48 +00:00
< / td >
2014-09-09 14:36:56 +00:00
< td class = "default" >
0
< / td >
2014-05-20 09:12:48 +00:00
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The x coordinate of the top-left of the region to process from.< / p > < / td >
2014-05-20 09:12:48 +00:00
< / tr >
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > y< / code > < / td >
2014-05-20 09:12:48 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
2014-09-09 14:36:56 +00:00
< optional>< br >
2014-05-20 09:12:48 +00:00
< / td >
2014-09-09 14:36:56 +00:00
< td class = "default" >
0
< / td >
2014-05-20 09:12:48 +00:00
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The y coordinate of the top-left of the region to process from.< / p > < / td >
2014-05-20 09:12:48 +00:00
< / tr >
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > width< / code > < / td >
2014-05-20 09:12:48 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
2014-09-09 14:36:56 +00:00
< optional>< br >
2014-05-20 09:12:48 +00:00
< / td >
2014-09-09 14:36:56 +00:00
< td class = "default" >
< / td >
2014-05-20 09:12:48 +00:00
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The width of the region to process.< / p > < / td >
2014-05-20 09:12:48 +00:00
< / tr >
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > height< / code > < / td >
2014-05-20 09:12:48 +00:00
< td class = "type" >
2014-09-09 14:36:56 +00:00
< span class = "param-type" > number< / span >
2014-05-20 09:12:48 +00:00
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
2014-09-09 14:36:56 +00:00
< td class = "default" >
< / td >
2014-05-20 09:12:48 +00:00
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The height of the region to process.< / p > < / td >
2014-05-20 09:12:48 +00:00
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-05-20 09:12:48 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-393" > line 393< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-04-29 14:39:02 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="rect">< span class = "type-signature" > < / span > rect< span class = "signature" > (x, y, width, height, < span class = "optional" > fillStyle< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-04-29 14:39:02 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< div class = "description" >
2014-09-09 14:36:56 +00:00
< p > Draws a filled Rectangle to the BitmapData at the given x, y coordinates and width / height in size.< / p >
2014-04-29 14:39:02 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
2014-09-09 14:36:56 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > x< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
2014-04-29 14:39:02 +00:00
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The x coordinate of the top-left of the Rectangle.< / p > < / td >
< / tr >
2014-04-29 14:39:02 +00:00
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > y< / code > < / td >
2014-04-29 14:39:02 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The y coordinate of the top-left of the Rectangle.< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > width< / code > < / td >
2014-04-29 14:39:02 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The width of the Rectangle.< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > height< / code > < / td >
2014-04-29 14:39:02 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > The height of the Rectangle.< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< tr >
2014-09-09 14:36:56 +00:00
< td class = "name" > < code > fillStyle< / code > < / td >
2014-04-29 14:39:02 +00:00
< td class = "type" >
2014-09-09 14:36:56 +00:00
< span class = "param-type" > string< / span >
2014-04-29 14:39:02 +00:00
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
2014-09-09 14:36:56 +00:00
< td class = "description last" > < p > If set the context fillStyle will be set to this value before the rect is drawn.< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-04-29 14:39:02 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1333" > line 1333< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-04-29 14:39:02 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="render">< span class = "type-signature" > < / span > render< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-04-29 14:39:02 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< div class = "description" >
< p > If the game is running in WebGL this will push the texture up to the GPU if it's dirty.
This is called automatically if the BitmapData is being used by a Sprite, otherwise you need to remember to call it in your render function.
If you wish to suppress this functionality set BitmapData.disableTextureUpload to < code > true< / code > .< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-04-29 14:39:02 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1471" > line 1471< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-04-29 14:39:02 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="replaceRGB">< span class = "type-signature" > < / span > replaceRGB< span class = "signature" > (r1, g1, b1, a1, r2, g2, b2, a2, < span class = "optional" > region< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-04-29 14:39:02 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< div class = "description" >
< p > Replaces all pixels matching one color with another. The color values are given as two sets of RGBA values.
An optional region parameter controls if the replacement happens in just a specific area of the BitmapData or the entire thing.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > r1< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > < p > The red color value to be replaced. Between 0 and 255.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > g1< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > < p > The green color value to be replaced. Between 0 and 255.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > b1< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > < p > The blue color value to be replaced. Between 0 and 255.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > a1< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > < p > The alpha color value to be replaced. Between 0 and 255.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > r2< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > < p > The red color value that is the replacement color. Between 0 and 255.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > g2< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > < p > The green color value that is the replacement color. Between 0 and 255.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > b2< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > < p > The blue color value that is the replacement color. Between 0 and 255.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > a2< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > < p > The alpha color value that is the replacement color. Between 0 and 255.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > region< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Rectangle.html" > Phaser.Rectangle< / a > < / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > < p > The area to perform the search over. If not given it will replace over the whole BitmapData.< / p > < / td >
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-04-29 14:39:02 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-505" > line 505< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-04-29 14:39:02 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="resize">< span class = "type-signature" > < / span > resize< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-04-29 14:39:02 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< div class = "description" >
< p > Resizes the BitmapData. This changes the size of the underlying canvas and refreshes the buffer.< / p >
< / div >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-04-29 14:39:02 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-313" > line 313< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-04-29 14:39:02 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="setHSL">< span class = "type-signature" > < / span > setHSL< span class = "signature" > (< span class = "optional" > h< / span > , < span class = "optional" > s< / span > , < span class = "optional" > l< / span > , < span class = "optional" > region< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-04-29 14:39:02 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< div class = "description" >
< p > Sets the hue, saturation and lightness values on every pixel in the given region, or the whole BitmapData if no region was specified.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > h< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
null
< / td >
< td class = "description last" > < p > The hue, in the range 0 - 1.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > s< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
null
< / td >
< td class = "description last" > < p > The saturation, in the range 0 - 1.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > l< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
null
< / td >
< td class = "description last" > < p > The lightness, in the range 0 - 1.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > region< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Rectangle.html" > Phaser.Rectangle< / a > < / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The area to perform the operation on. If not given it will run over the whole BitmapData.< / p > < / td >
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-04-29 14:39:02 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-555" > line 555< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-04-29 14:39:02 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="setPixel">< span class = "type-signature" > < / span > setPixel< span class = "signature" > (x, y, red, green, blue, alpha, < span class = "optional" > immediate< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-04-29 14:39:02 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
< div class = "description" >
< p > Sets the color of the given pixel to the specified red, green and blue values.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > x< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The x coordinate of the pixel to be set. Must lay within the dimensions of this BitmapData.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > y< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The y coordinate of the pixel to be set. Must lay within the dimensions of this BitmapData.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > red< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The red color value, between 0 and 0xFF (255).< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > green< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The green color value, between 0 and 0xFF (255).< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > blue< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The blue color value, between 0 and 0xFF (255).< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > alpha< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The alpha color value, between 0 and 0xFF (255).< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > immediate< / code > < / td >
< td class = "type" >
< span class = "param-type" > boolean< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
true
< / td >
< td class = "description last" > < p > If < code > true< / code > the context.putImageData will be called and the dirty flag set.< / p > < / td >
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-04-29 14:39:02 +00:00
< dl class = "details" >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-718" > line 718< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-11-28 15:57:09 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="setPixel32">< span class = "type-signature" > < / span > setPixel32< span class = "signature" > (x, y, red, green, blue, alpha, < span class = "optional" > immediate< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2013-11-28 15:57:09 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
< div class = "description" >
2014-04-29 14:39:02 +00:00
< p > Sets the color of the given pixel to the specified red, green, blue and alpha values.< / p >
2013-11-28 15:57:09 +00:00
< / div >
2014-04-29 14:39:02 +00:00
< h5 > Parameters:< / h5 >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< th > Type< / th >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > x< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The x coordinate of the pixel to be set. Must lay within the dimensions of this BitmapData.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > y< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
2015-03-23 23:46:30 +00:00
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The y coordinate of the pixel to be set. Must lay within the dimensions of this BitmapData.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > red< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The red color value, between 0 and 0xFF (255).< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > green< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The green color value, between 0 and 0xFF (255).< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > blue< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The blue color value, between 0 and 0xFF (255).< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > alpha< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The alpha color value, between 0 and 0xFF (255).< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > immediate< / code > < / td >
< td class = "type" >
< span class = "param-type" > boolean< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
true
< / td >
< td class = "description last" > < p > If < code > true< / code > the context.putImageData will be called and the dirty flag set.< / p > < / td >
< / tr >
< / tbody >
< / table >
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source -
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-679" > line 679< / a >
< / dt >
2014-04-29 14:39:02 +00:00
2015-03-23 23:46:30 +00:00
2014-04-29 14:39:02 +00:00
2015-03-23 23:46:30 +00:00
2014-04-29 14:39:02 +00:00
2015-03-23 23:46:30 +00:00
< / dl >
2014-04-29 14:39:02 +00:00
2015-03-23 23:46:30 +00:00
2014-04-29 14:39:02 +00:00
2015-03-23 23:46:30 +00:00
2014-04-29 14:39:02 +00:00
2015-03-23 23:46:30 +00:00
< / dd >
2014-04-29 14:39:02 +00:00
2015-03-23 23:46:30 +00:00
2014-04-29 14:39:02 +00:00
2015-03-23 23:46:30 +00:00
< dt >
< h4 class = "name "
id="shadow">< span class = "type-signature" > < / span > shadow< span class = "signature" > (color, < span class = "optional" > blur< / span > , < span class = "optional" > x< / span > , < span class = "optional" > y< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
< / dt >
< dd >
2014-04-29 14:39:02 +00:00
2015-03-23 23:46:30 +00:00
< div class = "description" >
< p > Sets the shadow properties of this BitmapDatas context which will affect all draw operations made to it.
You can cancel an existing shadow by calling this method and passing no parameters.
Note: At the time of writing (October 2014) Chrome still doesn't support shadowBlur used with drawImage.< / p >
< / div >
2014-04-29 14:39:02 +00:00
2015-03-23 23:46:30 +00:00
< h5 > Parameters:< / h5 >
2014-04-29 14:39:02 +00:00
2015-03-23 23:46:30 +00:00
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
2014-04-29 14:39:02 +00:00
2015-03-23 23:46:30 +00:00
< th > Type< / th >
2014-04-29 14:39:02 +00:00
2015-03-23 23:46:30 +00:00
< th > Argument< / th >
2014-04-29 14:39:02 +00:00
2015-03-23 23:46:30 +00:00
< th > Default< / th >
2014-04-29 14:39:02 +00:00
2015-03-23 23:46:30 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
2014-04-29 14:39:02 +00:00
2015-03-23 23:46:30 +00:00
< tbody >
2014-04-29 14:39:02 +00:00
< tr >
2015-03-23 23:46:30 +00:00
< td class = "name" > < code > color< / code > < / td >
2014-04-29 14:39:02 +00:00
< td class = "type" >
2015-03-23 23:46:30 +00:00
< span class = "param-type" > string< / span >
2014-04-29 14:39:02 +00:00
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > The color of the shadow, given in a CSS format, i.e. < code > #000000< / code > or < code > rgba(0,0,0,1)< / code > . If < code > null< / code > or < code > undefined< / code > the shadow will be reset.< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< tr >
2015-03-23 23:46:30 +00:00
< td class = "name" > < code > blur< / code > < / td >
2014-04-29 14:39:02 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
2015-03-23 23:46:30 +00:00
< optional>< br >
2014-04-29 14:39:02 +00:00
< / td >
< td class = "default" >
2015-03-23 23:46:30 +00:00
5
2014-04-29 14:39:02 +00:00
< / td >
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > The amount the shadow will be blurred by. Low values = a crisp shadow, high values = a softer shadow.< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
< tr >
2015-03-23 23:46:30 +00:00
< td class = "name" > < code > x< / code > < / td >
2014-04-29 14:39:02 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
2015-03-23 23:46:30 +00:00
< optional>< br >
2014-04-29 14:39:02 +00:00
< / td >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< td class = "default" >
2015-03-23 23:46:30 +00:00
10
2014-04-29 14:39:02 +00:00
< / td >
2013-11-28 15:57:09 +00:00
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > The horizontal offset of the shadow in pixels.< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< tr >
2015-03-23 23:46:30 +00:00
< td class = "name" > < code > y< / code > < / td >
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< td class = "type" >
2015-03-23 23:46:30 +00:00
< span class = "param-type" > number< / span >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< / td >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< td class = "attributes" >
< optional>< br >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< / td >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< td class = "default" >
2015-03-23 23:46:30 +00:00
10
2014-04-29 14:39:02 +00:00
< / td >
2013-11-28 15:57:09 +00:00
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > The vertical offset of the shadow in pixels.< / p > < / td >
2014-04-29 14:39:02 +00:00
< / tr >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< / tbody >
< / table >
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2013-11-28 15:57:09 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1218" > line 1218< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-11-28 15:57:09 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
2015-03-23 23:46:30 +00:00
id="shiftHSL">< span class = "type-signature" > < / span > shiftHSL< span class = "signature" > (< span class = "optional" > h< / span > , < span class = "optional" > s< / span > , < span class = "optional" > l< / span > , < span class = "optional" > region< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2013-11-28 15:57:09 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
< div class = "description" >
2015-03-23 23:46:30 +00:00
< p > Shifts any or all of the hue, saturation and lightness values on every pixel in the given region, or the whole BitmapData if no region was specified.
Shifting will add the given value onto the current h, s and l values, not replace them.
The hue is wrapped to keep it within the range 0 to 1. Saturation and lightness are clamped to not exceed 1.< / p >
2013-11-28 15:57:09 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
2014-04-29 14:39:02 +00:00
< th > Argument< / th >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< th > Default< / th >
2013-11-28 15:57:09 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2015-03-23 23:46:30 +00:00
< td class = "name" > < code > h< / code > < / td >
2014-10-09 15:12:53 +00:00
< td class = "type" >
2015-03-23 23:46:30 +00:00
< span class = "param-type" > number< / span >
2014-10-09 15:12:53 +00:00
< / td >
< td class = "attributes" >
2015-03-23 23:46:30 +00:00
< optional>< br >
2014-10-09 15:12:53 +00:00
< / td >
< td class = "default" >
2015-03-23 23:46:30 +00:00
null
2014-10-09 15:12:53 +00:00
< / td >
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > The amount to shift the hue by.< / p > < / td >
2014-10-09 15:12:53 +00:00
< / tr >
< tr >
2015-03-23 23:46:30 +00:00
< td class = "name" > < code > s< / code > < / td >
2013-11-28 15:57:09 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
2014-04-29 14:39:02 +00:00
< td class = "attributes" >
< optional>< br >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< / td >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< td class = "default" >
2015-03-23 23:46:30 +00:00
null
2014-04-29 14:39:02 +00:00
< / td >
2013-11-28 15:57:09 +00:00
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > The amount to shift the saturation by.< / p > < / td >
2014-02-18 03:01:51 +00:00
< / tr >
< tr >
2015-03-23 23:46:30 +00:00
< td class = "name" > < code > l< / code > < / td >
2014-02-18 03:01:51 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
2014-04-29 14:39:02 +00:00
< td class = "attributes" >
< optional>< br >
< / td >
2014-02-18 03:01:51 +00:00
2014-04-29 14:39:02 +00:00
< td class = "default" >
2015-03-23 23:46:30 +00:00
null
2014-04-29 14:39:02 +00:00
< / td >
2014-02-18 03:01:51 +00:00
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > The amount to shift the lightness by.< / p > < / td >
2013-11-28 15:57:09 +00:00
< / tr >
< tr >
2015-03-23 23:46:30 +00:00
< td class = "name" > < code > region< / code > < / td >
2013-11-28 15:57:09 +00:00
< td class = "type" >
2015-03-23 23:46:30 +00:00
< span class = "param-type" > < a href = "Phaser.Rectangle.html" > Phaser.Rectangle< / a > < / span >
2013-11-28 15:57:09 +00:00
< / td >
2014-04-29 14:39:02 +00:00
< td class = "attributes" >
< optional>< br >
< / td >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< td class = "default" >
< / td >
2013-11-28 15:57:09 +00:00
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > The area to perform the operation on. If not given it will run over the whole BitmapData.< / p > < / td >
2013-11-28 15:57:09 +00:00
< / tr >
2014-10-09 15:12:53 +00:00
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-10-09 15:12:53 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-616" > line 616< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-10-09 15:12:53 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-10-09 15:12:53 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
2015-03-23 23:46:30 +00:00
id="text">< span class = "type-signature" > < / span > text< span class = "signature" > (text, x, y, < span class = "optional" > font< / span > , < span class = "optional" > color< / span > , < span class = "optional" > shadow< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-10-09 15:12:53 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-10-09 15:12:53 +00:00
< div class = "description" >
2015-03-23 23:46:30 +00:00
< p > Draws text to the BitmapData in the given font and color.
The default font is 14px Courier, so useful for quickly drawing debug text.
If you need to do a lot of font work to this BitmapData we'd recommend implementing your own text draw method.< / p >
2014-10-09 15:12:53 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
2013-11-28 15:57:09 +00:00
< tr >
2015-03-23 23:46:30 +00:00
< td class = "name" > < code > text< / code > < / td >
2013-11-28 15:57:09 +00:00
< td class = "type" >
2015-03-23 23:46:30 +00:00
< span class = "param-type" > string< / span >
2013-11-28 15:57:09 +00:00
< / td >
2014-04-29 14:39:02 +00:00
< td class = "attributes" >
< / td >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< td class = "default" >
2015-03-23 23:46:30 +00:00
< / td >
< td class = "description last" > < p > The text to write to the BitmapData.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > x< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "attributes" >
2014-10-09 15:12:53 +00:00
2014-04-29 14:39:02 +00:00
< / td >
2013-11-28 15:57:09 +00:00
2015-03-23 23:46:30 +00:00
< td class = "default" >
< / td >
< td class = "description last" > < p > The x coordinate of the top-left of the text string.< / p > < / td >
2014-10-09 15:12:53 +00:00
< / tr >
< tr >
2015-03-23 23:46:30 +00:00
< td class = "name" > < code > y< / code > < / td >
2014-10-09 15:12:53 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
2015-03-23 23:46:30 +00:00
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The y coordinate of the top-left of the text string.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > font< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
2014-10-09 15:12:53 +00:00
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
2015-03-23 23:46:30 +00:00
'14px Courier'
2014-10-09 15:12:53 +00:00
< / td >
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > The font. This is passed directly to Context.font, so anything that can support, this can.< / p > < / td >
2014-10-09 15:12:53 +00:00
< / tr >
< tr >
2015-03-23 23:46:30 +00:00
< td class = "name" > < code > color< / code > < / td >
2014-10-09 15:12:53 +00:00
< td class = "type" >
2015-03-23 23:46:30 +00:00
< span class = "param-type" > string< / span >
2014-10-09 15:12:53 +00:00
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
2015-03-23 23:46:30 +00:00
'rgb(255,255,255)'
2014-10-09 15:12:53 +00:00
< / td >
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > The color the text will be drawn in.< / p > < / td >
2014-10-09 15:12:53 +00:00
< / tr >
< tr >
2015-03-23 23:46:30 +00:00
< td class = "name" > < code > shadow< / code > < / td >
2014-10-09 15:12:53 +00:00
< td class = "type" >
2015-03-23 23:46:30 +00:00
< span class = "param-type" > boolean< / span >
2014-10-09 15:12:53 +00:00
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
2015-03-23 23:46:30 +00:00
true
2014-10-09 15:12:53 +00:00
< / td >
2015-03-23 23:46:30 +00:00
< td class = "description last" > < p > Draw a single pixel black shadow below the text (offset by text.x/y + 1)< / p > < / td >
2014-10-09 15:12:53 +00:00
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2014-10-09 15:12:53 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1357" > line 1357< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2014-10-09 15:12:53 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2014-10-09 15:12:53 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="textureLine">< span class = "type-signature" > < / span > textureLine< span class = "signature" > (line, image, < span class = "optional" > repeat< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2014-10-09 15:12:53 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2014-10-09 15:12:53 +00:00
< div class = "description" >
< p > Takes the given Line object and image and renders it to this BitmapData as a repeating texture line.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Argument< / th >
< th > Default< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > line< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Line.html" > Phaser.Line< / a > < / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > A Phaser.Line object that will be used to plot the start and end of the line.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > image< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
|
2014-10-22 20:49:44 +00:00
< span class = "param-type" > Image< / span >
2014-10-09 15:12:53 +00:00
< / td >
< td class = "attributes" >
< / td >
< td class = "default" >
< / td >
< td class = "description last" > < p > The key of an image in the Phaser.Cache to use as the texture for this line, or an actual Image.< / p > < / td >
< / tr >
< tr >
< td class = "name" > < code > repeat< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "default" >
'repeat-x'
< / td >
< td class = "description last" > < p > The pattern repeat mode to use when drawing the line. Either < code > repeat< / code > , < code > repeat-x< / code > or < code > no-repeat< / code > .< / p > < / td >
2013-11-28 15:57:09 +00:00
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2013-11-28 15:57:09 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-1423" > line 1423< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-11-28 15:57:09 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
< / dd >
< dt >
2014-11-15 20:01:46 +00:00
< h4 class = "name "
id="update">< span class = "type-signature" > < / span > update< span class = "signature" > (< span class = "optional" > x< / span > , < span class = "optional" > y< / span > , < span class = "optional" > width< / span > , < span class = "optional" > height< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > }< / span > < / h4 >
2013-11-28 15:57:09 +00:00
< / dt >
< dd >
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
< div class = "description" >
2014-04-29 14:39:02 +00:00
< p > This re-creates the BitmapData.imageData from the current context.
It then re-builds the ArrayBuffer, the data Uint8ClampedArray reference and the pixels Int32Array.
If not given the dimensions defaults to the full size of the context.< / p >
2013-11-28 15:57:09 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
2014-04-29 14:39:02 +00:00
< th > Argument< / th >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< th > Default< / th >
2013-11-28 15:57:09 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-18 03:01:51 +00:00
< td class = "name" > < code > x< / code > < / td >
2013-11-28 15:57:09 +00:00
< td class = "type" >
2014-02-18 03:01:51 +00:00
< span class = "param-type" > number< / span >
< / td >
2014-04-29 14:39:02 +00:00
< td class = "attributes" >
< optional>< br >
< / td >
2014-02-18 03:01:51 +00:00
2014-04-29 14:39:02 +00:00
< td class = "default" >
0
< / td >
2014-02-18 03:01:51 +00:00
2014-04-29 14:39:02 +00:00
< td class = "description last" > < p > The x coordinate of the top-left of the image data area to grab from.< / p > < / td >
2014-02-18 03:01:51 +00:00
< / tr >
< tr >
< td class = "name" > < code > y< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
2014-04-29 14:39:02 +00:00
< td class = "attributes" >
< optional>< br >
2014-02-18 03:01:51 +00:00
2014-04-29 14:39:02 +00:00
2014-02-18 03:01:51 +00:00
2014-04-29 14:39:02 +00:00
< / td >
2014-02-18 03:01:51 +00:00
2014-04-29 14:39:02 +00:00
< td class = "default" >
0
< / td >
2014-02-18 03:01:51 +00:00
2014-04-29 14:39:02 +00:00
< td class = "description last" > < p > The y coordinate of the top-left of the image data area to grab from.< / p > < / td >
2014-02-18 03:01:51 +00:00
< / tr >
< tr >
2014-04-29 14:39:02 +00:00
< td class = "name" > < code > width< / code > < / td >
2014-02-18 03:01:51 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
2014-04-29 14:39:02 +00:00
< td class = "attributes" >
< optional>< br >
2014-02-18 03:01:51 +00:00
2014-04-29 14:39:02 +00:00
2014-02-18 03:01:51 +00:00
2014-04-29 14:39:02 +00:00
< / td >
2014-02-18 03:01:51 +00:00
2014-04-29 14:39:02 +00:00
< td class = "default" >
< / td >
2014-02-18 03:01:51 +00:00
2014-04-29 14:39:02 +00:00
< td class = "description last" > < p > The width of the image data area.< / p > < / td >
2014-02-18 03:01:51 +00:00
< / tr >
< tr >
2014-04-29 14:39:02 +00:00
< td class = "name" > < code > height< / code > < / td >
2014-02-18 03:01:51 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
2013-11-28 15:57:09 +00:00
< / td >
2014-04-29 14:39:02 +00:00
< td class = "attributes" >
< optional>< br >
< / td >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< td class = "default" >
< / td >
2013-11-28 15:57:09 +00:00
2014-04-29 14:39:02 +00:00
< td class = "description last" > < p > The height of the image data area.< / p > < / td >
2013-11-28 15:57:09 +00:00
< / tr >
< / tbody >
< / table >
2014-11-15 20:01:46 +00:00
< h5 > Returns:< / h5 >
< div class = "returns" >
< div class = "returns-type" >
< span class = "param-type" > < a href = "Phaser.BitmapData.html" > Phaser.BitmapData< / a > < / span >
-
< / div >
< div class = "returns-desc param-desc" >
< p > This BitmapData object for method chaining.< / p >
< / div >
< / div >
2013-11-28 15:57:09 +00:00
< dl class = "details" >
2014-11-15 20:01:46 +00:00
< dt class = "tag-source" > Source -
2015-03-23 23:46:30 +00:00
< a href = "src_gameobjects_BitmapData.js.html" > gameobjects/BitmapData.js< / a > , < a href = "src_gameobjects_BitmapData.js.html#sunlight-1-line-349" > line 349< / a >
2014-11-15 20:01:46 +00:00
< / dt >
2013-11-28 15:57:09 +00:00
< / dl >
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
< / dd >
< / dl >
< / article >
< / section >
< / div >
< div class = "clearfix" > < / div >
< footer >
< span class = "copyright" >
2015-03-23 23:46:30 +00:00
Phaser Copyright © 2012-2015 Photon Storm Ltd.
2013-11-28 15:57:09 +00:00
< / span >
< br / >
< span class = "jsdoc-message" >
2015-03-23 23:46:30 +00:00
Documentation generated by < a href = "https://github.com/jsdoc3/jsdoc" > JSDoc 3.3.0-alpha10< / a >
2015-03-26 02:55:18 +00:00
on Thu Mar 26 2015 02:53:49 GMT+0000 (GMT Standard Time) using the < a href = "https://github.com/terryweiss/docstrap" > DocStrap template< / a > .
2013-11-28 15:57:09 +00:00
< / span >
< / footer >
< / div >
< div class = "span3" >
< div id = "toc" > < / div >
< / div >
< br clear = "both" >
< / div >
< / div >
< script src = "scripts/sunlight.js" > < / script >
< script src = "scripts/sunlight.javascript.js" > < / script >
< script src = "scripts/sunlight-plugin.doclinks.js" > < / script >
< script src = "scripts/sunlight-plugin.linenumbers.js" > < / script >
< script src = "scripts/sunlight-plugin.menu.js" > < / script >
< script src = "scripts/jquery.min.js" > < / script >
< script src = "scripts/jquery.scrollTo.js" > < / script >
< script src = "scripts/jquery.localScroll.js" > < / script >
< script src = "scripts/bootstrap-dropdown.js" > < / script >
< script src = "scripts/toc.js" > < / script >
< script > Sunlight . highlightAll ( { lineNumbers : true , showMenu : true , enableDoclinks : true } ) ; < / script >
< script >
$( function () {
$( "#toc" ).toc( {
2014-04-10 22:13:43 +00:00
anchorName : function(i, heading, prefix) {
2014-03-14 06:36:05 +00:00
return $(heading).attr("id") || ( prefix + i );
},
2013-11-28 15:57:09 +00:00
selectors : "h1,h2,h3,h4",
showAndHide : false,
scrollTo : 60
} );
$( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" );
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
} );
< / script >
< / body >
< / html >