My favorites | Sign in
Logo
                
Search
for
  • Screen
    • init
    • frame
    • title
  • Channel
    • get
    • play
    • $playing
    • $position
    • $length
    • $sound
    • FREE
  • Sound
    • fromFile
    • fromString
    • slice
    • play
  • SoundEffect
  • Music
    • play
    • stop
    • playing
  • Audio
    • init
  • Bitmap
    • __construct
    • fromFile
    • fromString
    • saveFile
    • __clone
    • slice
    • split
    • clear
    • blit
    • $x
    • $y
    • $w
    • $h
    • $cx
    • $cy
    • FORMAT_BMP
    • FORMAT_TGA
    • FORMAT_PNG
    • FORMAT_JPG
  • Shader
    • __construct
    • begin
    • end
  • Keyboard
    • pressed
    • down
  • Mouse
    • show
    • hide
    • position
    • pressed
    • down
    • LEFT
    • MIDDLE
    • RIGHT
    • WHEEL_UP
    • WHEEL_DOWN
  • Font
    • fromFile
    • fromString
    • fromName
    • width
    • height
    • metrics
    • blit
    • $fixed
    • $style
    • $height
    • $ascent
    • $descent
    • $lineSkip
    • $faceName
    • $styleName
  • Math
    • clamp
    • smoothstep
    • sign
    • swap
  • Draw
    • line
  • TCC
    • __construct
    • define
    • sourceString
    • sourceFile
    • libFile
    • libPath
    • includePath
    • runMain
    • call
Updated May 01, 2009 by soywiz
API_6Bitmap  

class Bitmap

Class to handle, modify and draw images.

  • __construct ($w, $h) : Bitmap
  • fromFile ($filename) : Bitmap
  • fromString ($string) : Bitmap
  • saveFile ($filename, $format = 0) : void
  • __clone () : Bitmap
  • slice ($x, $y, $w, $h) : Bitmap
  • split ($w, $h) : Array
  • clear ($r = 0, $g = 0, $b = 0, $a = 0) : void
  • blit (Bitmap $dest, $x, $y, $size = 1, $rotation = 0, $alpha = 1, Shader $shader = NULL, $shader_params = NULL) : void
  • $x
  • $y
  • $w
  • $h
  • $cx
  • $cy
  • FORMAT_BMP = 0
  • FORMAT_TGA = 1
  • FORMAT_PNG = 2
  • FORMAT_JPG = 3


Sign in to add a comment
Hosted by Google Code