Skip to content

hm5-types (source format) / BitmapImage

Interface: BitmapImage ​

One editable raster picture, owned by the document, referenced by bitmap- layer keyframes. Has its OWN internal sub-layers (like a mini-PSD), edited in the Bitmap Layer panel. Sub-layers are per-image and unrelated to timeline layers.

Two kinds (owner 2026-11-17), told apart by content, not a stored flag (document isRichBitmap): a plain bitmap = ONE sub-layer with nothing on it (normal blend, full opacity, no effect / mask / folder); anything more = a rich-bitmap.

Properties ​

PropertyTypeDescription
activeSubLayerIdstringwhich sub-layer brush strokes land on
editMask?booleanstrokes land on the active sub-layer's MASK instead of its pixels (Photoshop: the mask thumbnail is the selected one). Ignored when that sub-layer has no mask.
folders?BitmapSubFolder[]sub-layer folders (Photoshop groups). A folder holds the sub-layers whose folderId names it; they are always next to each other in subLayers (the document ops keep it so), which is also where the folder sits in the stack. A folder with no member is removed. One level, no folders in folders.
heightnumber-
idstring-
lastCanvas?objectthe canvas the limit had when it was switched off (picture space, stage units): switching it on again starts from it, not from the stage (owner 2026-11-19). Moves with the origin.
lastCanvas.heightnumber-
lastCanvas.widthnumber-
lastCanvas.xnumber-
lastCanvas.ynumber-
limit?booleanthe area is a fixed canvas (the Layers panel's size toggle). Absent = no limit.
namestring-
pixelScalenumberbufferPx = round(logicalPx * pixelScale), <= 1
subLayersBitmapSubLayer[]ordered bottom→top
widthnumberthe picture's AREA, from (0, 0), in stage units (owner 2026-11-18, Photoshop): a picture has no size of its own — every sub-layer holds just the pixels painted on it, at its own place. Without limit the area is only the working window (pixel selections, flattening, exports): it grows by itself to hold every sub-layer (document fitBitmapArea; growing left / up moves the origin, every keyframe showing the picture compensates). With limit it is the CANVAS: fixed, nothing outside it is drawn or painted (what lies outside is kept, only hidden). The area's buffer (× pixelScale) stays within MAX_PIXEL_EDGE (8192) on the long edge; pixelScale < 1 records a downscaled buffer.

HereSplash — 2D animation for the web