/bin/std/flash9/display/BitmapData.hx

http://github.com/Yoomee/clippy · Haxe · 44 lines · 41 code · 3 blank · 0 comment · 0 complexity · f8c0860c4b10fdf7c5c986d02eb40e8f MD5 · raw file

  1. package flash.display;
  2. extern class BitmapData implements IBitmapDrawable {
  3. var height(default,null) : Int;
  4. var rect(default,null) : flash.geom.Rectangle;
  5. var transparent(default,null) : Bool;
  6. var width(default,null) : Int;
  7. function new(width : Int, height : Int, ?transparent : Bool, ?fillColor : UInt) : Void;
  8. function applyFilter(sourceBitmapData : BitmapData, sourceRect : flash.geom.Rectangle, destPoint : flash.geom.Point, filter : flash.filters.BitmapFilter) : Void;
  9. function clone() : BitmapData;
  10. function colorTransform(rect : flash.geom.Rectangle, colorTransform : flash.geom.ColorTransform) : Void;
  11. function compare(otherBitmapData : BitmapData) : Dynamic;
  12. function copyChannel(sourceBitmapData : BitmapData, sourceRect : flash.geom.Rectangle, destPoint : flash.geom.Point, sourceChannel : Int, destChannel : Int) : Void;
  13. function copyPixels(sourceBitmapData : BitmapData, sourceRect : flash.geom.Rectangle, destPoint : flash.geom.Point, ?alphaBitmapData : BitmapData, ?alphaPoint : flash.geom.Point, ?mergeAlpha : Bool) : Void;
  14. function dispose() : Void;
  15. function draw(source : IBitmapDrawable, ?matrix : flash.geom.Matrix, ?colorTransform : flash.geom.ColorTransform, ?blendMode : BlendMode, ?clipRect : flash.geom.Rectangle, ?smoothing : Bool) : Void;
  16. function fillRect(rect : flash.geom.Rectangle, color : UInt) : Void;
  17. function floodFill(x : Int, y : Int, color : UInt) : Void;
  18. function generateFilterRect(sourceRect : flash.geom.Rectangle, filter : flash.filters.BitmapFilter) : flash.geom.Rectangle;
  19. function getColorBoundsRect(mask : UInt, color : UInt, ?findColor : Bool) : flash.geom.Rectangle;
  20. function getPixel(x : Int, y : Int) : UInt;
  21. function getPixel32(x : Int, y : Int) : UInt;
  22. function getPixels(rect : flash.geom.Rectangle) : flash.utils.ByteArray;
  23. function hitTest(firstPoint : flash.geom.Point, firstAlphaThreshold : UInt, secondObject : Dynamic, ?secondBitmapDataPoint : flash.geom.Point, ?secondAlphaThreshold : UInt) : Bool;
  24. function lock() : Void;
  25. function merge(sourceBitmapData : BitmapData, sourceRect : flash.geom.Rectangle, destPoint : flash.geom.Point, redMultiplier : UInt, greenMultiplier : UInt, blueMultiplier : UInt, alphaMultiplier : UInt) : Void;
  26. function noise(randomSeed : Int, ?low : UInt, ?high : UInt, ?channelOptions : UInt, ?grayScale : Bool) : Void;
  27. function paletteMap(sourceBitmapData : BitmapData, sourceRect : flash.geom.Rectangle, destPoint : flash.geom.Point, ?redArray : Array<Int>, ?greenArray : Array<Int>, ?blueArray : Array<Int>, ?alphaArray : Array<Int>) : Void;
  28. function perlinNoise(baseX : Float, baseY : Float, numOctaves : UInt, randomSeed : Int, stitch : Bool, fractalNoise : Bool, ?channelOptions : UInt, ?grayScale : Bool, ?offsets : Array<flash.geom.Point>) : Void;
  29. function pixelDissolve(sourceBitmapData : BitmapData, sourceRect : flash.geom.Rectangle, destPoint : flash.geom.Point, ?randomSeed : Int, ?numPixels : Int, ?fillColor : UInt) : Int;
  30. function scroll(x : Int, y : Int) : Void;
  31. function setPixel(x : Int, y : Int, color : UInt) : Void;
  32. function setPixel32(x : Int, y : Int, color : UInt) : Void;
  33. function setPixels(rect : flash.geom.Rectangle, inputByteArray : flash.utils.ByteArray) : Void;
  34. function threshold(sourceBitmapData : BitmapData, sourceRect : flash.geom.Rectangle, destPoint : flash.geom.Point, operation : String, threshold : UInt, ?color : UInt, ?mask : UInt, ?copySource : Bool) : UInt;
  35. function unlock(?changeRect : flash.geom.Rectangle) : Void;
  36. #if flash10
  37. function setVector( rect : flash.geom.Rectangle, inputVector : flash.Vector<UInt> ) : Void;
  38. function getVector( rect : flash.geom.Rectangle ) : flash.Vector<UInt>;
  39. function histogram( ?hRect : flash.geom.Rectangle ) : flash.Vector<flash.Vector<Int>>;
  40. #end
  41. }