starry / backend /libs /three /extras /ImageUtils.d.ts
k-l-lambda's picture
feat: add Python ML services (CPU mode) with model download
2b7aae2
import { Mapping } from '../constants';
import { Texture } from '../textures/Texture';
export namespace ImageUtils {
function getDataURL(image: any): string;
/**
* @deprecated
*/
let crossOrigin: string;
/**
* @deprecated Use {@link TextureLoader THREE.TextureLoader()} instead.
*/
function loadTexture(url: string, mapping?: Mapping, onLoad?: (texture: Texture) => void, onError?: (message: string) => void): Texture;
/**
* @deprecated Use {@link CubeTextureLoader THREE.CubeTextureLoader()} instead.
*/
function loadTextureCube(array: string[], mapping?: Mapping, onLoad?: (texture: Texture) => void, onError?: (message: string) => void): Texture;
function sRGBToLinear(image: any): HTMLCanvasElement | { data: number[]; width: number; height: number };
}