Skip to main content

Function: flipImage()

flipImage(image, options?): HdrifyImage

Flip an HdrifyImage along either axis (or both), returning a new image with a freshly allocated buffer. { y: -1 } mirrors top-to-bottom — the transform some decoders (e.g. three.js's EXRLoader) apply during decode to land in a bottom-origin texture convention, so the same effect can be reproduced without one.

Parameters​

image​

HdrifyImage

options?​

FlipImageOptions = {}

Returns​

HdrifyImage