Skip to content

hm5-types (source format) / BitmapSubMask

Interface: BitmapSubMask ​

A sub-layer's mask (Photoshop layer mask), read by its grey level — white = shown, black = hidden. Owner 2026-11-19: it has no size; it is ONE colour everywhere (outside) except the picture assetId holds — the part that differs, trimmed (painting trims it again). Inside that picture a transparent pixel is the outside colour too.

Properties ​

PropertyTypeDescription
assetIdstringPNG, buffer pixels (same scale as the sub-layer's own buffer); a 1 × 1 transparent pixel = nothing but outside
disabled?booleankept but not applied (Photoshop Shift+click)
outside?"black"the colour everywhere the picture does not cover: absent = white (shown), "black" = hidden
unlinked?booleanPhotoshop's chain between the layer and its mask switched off: the mask stays put when the sub-layer is moved / transformed (x / y are picture space). Absent = linked (the default).
xnumberthe picture's top-left in the sub-layer's LAYER space (buffer pixels, like BitmapSubLayer.x / y: it moves / turns with the sub-layer's transform) — in PICTURE space when unlinked
ynumber-

HereSplash — 2D animation for the web