basalt / storage/src / ResizeOptions
Interface: ResizeOptions
Defined in: storage/src/image.ts:7
Properties
fit?
> optional fit?: "fill" | "cover" | "contain" | "inside" | "outside"
Defined in: storage/src/image.ts:11
How the image fills the target box. Default (engine's choice): cover.
height?
> optional height?: number
Defined in: storage/src/image.ts:9
position?
> optional position?: string
Defined in: storage/src/image.ts:13
Gravity/position for cover/contain (engine-specific string, e.g. center).
width?
> optional width?: number
Defined in: storage/src/image.ts:8