interface Bitmap
package bitmap
extends OffsetRectangleArea › RectangleArea
implemented by AbstractBitmap
Variables
bg:Color
Default color for this bitmap background. It's used in some operations like copy/clone as default background color in some cases.
io:BitmapIO
Utilities to load/save bitmaps from/to other formats or resources, such as base64 dataUrls, raw bytes formats, HTML canvas, HTML images, DOM Blobs, TypedArrays, buffers, urls, etc.
noRangeCheck:Bool
If true operationsn won't throw exceptions in case given coordinates for get/set are outside bitmap.
Methods
clone (?fillBg:Bool):Bitmap
Returns a new bitmap that is a copy of this one with exactly the same pixels.
copyFrom (b:Bitmap, bCoords:Point, regionThis:Rectangle):Void
Writes in this bitmap given region of given bitmap, or if no region is given, the bitmap entirely.
equals (b:Bitmap, ?region:Rectangle):Bool
Returns true if this bitmap and given one are exactly equal (pixel by pixel).