Appearance
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
| Property | Type | Description |
|---|---|---|
activeSubLayerId | string | which sub-layer brush strokes land on |
editMask? | boolean | strokes 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. |
height | number | - |
id | string | - |
lastCanvas? | object | the 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.height | number | - |
lastCanvas.width | number | - |
lastCanvas.x | number | - |
lastCanvas.y | number | - |
limit? | boolean | the area is a fixed canvas (the Layers panel's size toggle). Absent = no limit. |
name | string | - |
pixelScale | number | bufferPx = round(logicalPx * pixelScale), <= 1 |
subLayers | BitmapSubLayer[] | ordered bottom→top |
width | number | the 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. |