MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / getOrLoadBitmap

Function getOrLoadBitmap

src/hooks/useFrustumTexture.ts:116–118  ·  view source on GitHub ↗

* Return a cached resized bitmap for image-plane texture creation.

(_cacheKey: string, imageName: string)

Source from the content-addressed store, hash-verified

114 * Return a cached resized bitmap for image-plane texture creation.
115 */
116async function getOrLoadBitmap(_cacheKey: string, imageName: string): Promise<ImageBitmap | null> {
117 return getCachedFrustumBitmap(bitmapCache, imageName);
118}
119
120/**
121 * Create texture from ImageBitmap (synchronous, no async load delay).

Callers 1

Calls 1

getCachedFrustumBitmapFunction · 0.90

Tested by

no test coverage detected