Difference between revisions of "Gb.display.drawBitmap"

From Gamebuino Wiki
Jump to: navigation, search
(made the page yo)
 
(Example: new drawBitmap example added)
 
Line 18: Line 18:
  
 
== Example ==
 
== Example ==
<gistit>https://github.com/Rodot/Gamebuino/blob/master/libraries/Gamebuino/examples/2.Intermediate/TileMapRAM/TileMapRAM.ino</gistit>
+
<gistit>https://github.com/Rodot/Gamebuino/blob/beta/libraries/Gamebuino/examples/5.Reference/display/bitmap/bitmap.ino</gistit>
  
 
== See also ==
 
== See also ==

Latest revision as of 2015-01-28T13:24:04

Description

Used to display a bitmap that is a byte array onto the screen.

Syntax

gb.display.drawBitmap(x,y,bitmap,rotation,flip);

Parameters

  • x: the x coordinate to draw the bitmap
  • y: the y coordinate to draw the bitmap
  • bitmap: a byte array
  • rotation (optional): rotation of the bitmap NOROT, ROTCCW, ROT180, ROTCW
  • flip (optional): how the bitmap is flipped NOFLIP, FLIPH, FLIPV, FLIPVH

Returns

none

Example

See also