Skip to content

ImageBlock

Defined in: src/core/document-model/types.ts:1075

readonly optional alpha?: number

Defined in: src/core/document-model/types.ts:1099

§20.1.8.4 a:alphaModFix — how opaque the picture is DRAWN, 0..1; absent is opaque. A layout that lays a photograph behind its text sets it low (ArtisticEffectSample’s cover shows one at 52%), and drawn full-strength the words on it are unreadable.


readonly optional altText?: string

Defined in: src/core/document-model/types.ts:1124

wp:docPr @descr/@title — alternate text for the tagged-PDF Figure (/Alt).


readonly optional colorChange?: object

Defined in: src/core/document-model/types.ts:1104

§20.1.8.16 a:clrChange — one colour of the picture replaced by another, or knocked out entirely when the destination states a:alpha at zero.

readonly fromHex: string

readonly toHex: string

readonly transparent: boolean


readonly optional crop?: ImageCrop

Defined in: src/core/document-model/types.ts:1112

§20.1.8.55 a:srcRect — the part of the source the frame shows.


readonly optional effectExtent?: object

Defined in: src/core/document-model/types.ts:1121

§20.4.2.6 wp:effectExtent — space reserved around the picture (see InlineImage).

readonly bottomPt: Pt

readonly leftPt: Pt

readonly rightPt: Pt

readonly topPt: Pt


readonly optional flipH?: boolean

Defined in: src/core/document-model/types.ts:1116

§20.1.7.6 a:xfrm @flipH/@flipV — the picture drawn mirrored.


readonly optional flipV?: boolean

Defined in: src/core/document-model/types.ts:1117


readonly optional float?: FloatAnchor

Defined in: src/core/document-model/types.ts:1077

§20.4.2.3 — present when the drawing is anchored (floating).


readonly height: Pt

Defined in: src/core/document-model/types.ts:1110


readonly optional outline?: PictureOutline

Defined in: src/core/document-model/types.ts:1080

The picture’s own frame, when it has one (see PictureOutline).


readonly paragraphProperties: ParagraphProperties

Defined in: src/core/document-model/types.ts:1122


readonly optional relativeSize?: RelativeSize

Defined in: src/core/document-model/types.ts:1119

wp14:sizeRelH/V — a size stated as a share of the page or margins.


readonly optional resource?: ResourceId

Defined in: src/core/document-model/types.ts:1078


readonly optional rotation60k?: number

Defined in: src/core/document-model/types.ts:1114

§20.1.7.6 a:xfrm @rot — the picture’s own rotation (1/60000°, clockwise).


readonly optional shadow?: ShapeShadow

Defined in: src/core/document-model/types.ts:1086

§20.1.8.40 a:outerShdw — the drop shadow under the picture. Word writes one on every screenshot pasted with a style; drawn nowhere, imgshadow.docx’s six stood flat on the page where both references lift them off it.


readonly optional wash?: object

Defined in: src/core/document-model/types.ts:1092

§14.1.2.10 @gain/@blacklevel — the contrast and brightness the picture is drawn through, about mid grey: out = (in - 0.5) * gain + 0.5 + black. Word washes a watermark out this way.

readonly black: number

readonly gain: number


readonly width: Pt

Defined in: src/core/document-model/types.ts:1109