Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
// Generated by tools/gen.sh from Blender's own API (tools/dump.py). Don't edit: regenerate.
import type * as H from "../../types";
import type * as M from "../../mathutils";
import type * as R from "../rna";
import type * as E from "../enums";
import type * as P from "../py";
/** bpy_extras.image_utils */
export interface Api {
/**
* Return an image from the file path with options to search multiple paths
* and return a placeholder if it's not found.
* @returns an image or None
* @param imagepath The image filename If a path precedes it, this will be searched as well.
* @param dirname is the directory where the image may be located - any file at the end will be ignored.
* @param place_holder if True a new place holder image will be created. this is useful so later you can relink the image to its original data.
* @param recursive If True, directories will be recursively searched. Be careful with this if you have files in your root directory because it may take a long time.
* @param ncase_cmp on non windows systems, find the correct case for the file.
* @param convert_callback a function that takes an existing path and returns a new one. Use this when loading image formats blender may not support, the CONVERT_CALLBACK can take the path for a GIF (for example), convert it to a PNG and return the PNG's path. For formats blender can read, simply return the path that is given.
* @param verbose If True, print extra information when searching for the image.
* @param relpath If not None, make the file relative to this path.
* @param check_existing If true, returns already loaded image data-block if possible (based on file path).
* @param force_reload If true, force reloading of image (only useful when ``check_existing`` is also enabled).
*/
load_image(imagepath: H.In<string>, dirname?: H.In<string>, place_holder?: H.In<boolean>, recursive?: H.In<boolean>, ncase_cmp?: H.In<boolean>, convert_callback?: any, verbose?: H.In<boolean>, relpath?: H.In<string | null>, check_existing?: H.In<boolean>, force_reload?: H.In<boolean>): H.Ptr<R.Image>;
/**
* Return an image from the file path with options to search multiple paths
* and return a placeholder if it's not found.
* @returns an image or None
* @param imagepath The image filename If a path precedes it, this will be searched as well.
* @param dirname is the directory where the image may be located - any file at the end will be ignored.
* @param place_holder if True a new place holder image will be created. this is useful so later you can relink the image to its original data.
* @param recursive If True, directories will be recursively searched. Be careful with this if you have files in your root directory because it may take a long time.
* @param ncase_cmp on non windows systems, find the correct case for the file.
* @param convert_callback a function that takes an existing path and returns a new one. Use this when loading image formats blender may not support, the CONVERT_CALLBACK can take the path for a GIF (for example), convert it to a PNG and return the PNG's path. For formats blender can read, simply return the path that is given.
* @param verbose If True, print extra information when searching for the image.
* @param relpath If not None, make the file relative to this path.
* @param check_existing If true, returns already loaded image data-block if possible (based on file path).
* @param force_reload If true, force reloading of image (only useful when ``check_existing`` is also enabled).
*/
load_image(imagepath: H.In<string>, kw: {
/**
* is the directory where the image may be located - any file at
* the end will be ignored.
*/
dirname?: H.In<string>;
/**
* if True a new place holder image will be created.
* this is useful so later you can relink the image to its original data.
*/
place_holder?: H.In<boolean>;
/**
* If True, directories will be recursively searched.
* Be careful with this if you have files in your root directory because
* it may take a long time.
*/
recursive?: H.In<boolean>;
/** on non windows systems, find the correct case for the file. */
ncase_cmp?: H.In<boolean>;
/**
* a function that takes an existing path and returns
* a new one. Use this when loading image formats blender may not support,
* the CONVERT_CALLBACK can take the path for a GIF (for example),
* convert it to a PNG and return the PNG's path.
* For formats blender can read, simply return the path that is given.
*/
convert_callback?: any;
/** If True, print extra information when searching for the image. */
verbose?: H.In<boolean>;
/** If not None, make the file relative to this path. */
relpath?: H.In<string | null>;
/**
* If true,
* returns already loaded image data-block if possible
* (based on file path).
*/
check_existing?: H.In<boolean>;
/**
* If true,
* force reloading of image (only useful when ``check_existing``
* is also enabled).
*/
force_reload?: H.In<boolean>;
}): H.Ptr<R.Image>;
/**
* Return an image from the file path with options to search multiple paths
* and return a placeholder if it's not found.
* @returns an image or None
* @param imagepath The image filename If a path precedes it, this will be searched as well.
* @param dirname is the directory where the image may be located - any file at the end will be ignored.
* @param place_holder if True a new place holder image will be created. this is useful so later you can relink the image to its original data.
* @param recursive If True, directories will be recursively searched. Be careful with this if you have files in your root directory because it may take a long time.
* @param ncase_cmp on non windows systems, find the correct case for the file.
* @param convert_callback a function that takes an existing path and returns a new one. Use this when loading image formats blender may not support, the CONVERT_CALLBACK can take the path for a GIF (for example), convert it to a PNG and return the PNG's path. For formats blender can read, simply return the path that is given.
* @param verbose If True, print extra information when searching for the image.
* @param relpath If not None, make the file relative to this path.
* @param check_existing If true, returns already loaded image data-block if possible (based on file path).
* @param force_reload If true, force reloading of image (only useful when ``check_existing`` is also enabled).
*/
load_image(kw: {
/**
* The image filename
* If a path precedes it, this will be searched as well.
*/
imagepath: H.In<string>;
/**
* is the directory where the image may be located - any file at
* the end will be ignored.
*/
dirname?: H.In<string>;
/**
* if True a new place holder image will be created.
* this is useful so later you can relink the image to its original data.
*/
place_holder?: H.In<boolean>;
/**
* If True, directories will be recursively searched.
* Be careful with this if you have files in your root directory because
* it may take a long time.
*/
recursive?: H.In<boolean>;
/** on non windows systems, find the correct case for the file. */
ncase_cmp?: H.In<boolean>;
/**
* a function that takes an existing path and returns
* a new one. Use this when loading image formats blender may not support,
* the CONVERT_CALLBACK can take the path for a GIF (for example),
* convert it to a PNG and return the PNG's path.
* For formats blender can read, simply return the path that is given.
*/
convert_callback?: any;
/** If True, print extra information when searching for the image. */
verbose?: H.In<boolean>;
/** If not None, make the file relative to this path. */
relpath?: H.In<string | null>;
/**
* If true,
* returns already loaded image data-block if possible
* (based on file path).
*/
check_existing?: H.In<boolean>;
/**
* If true,
* force reloading of image (only useful when ``check_existing``
* is also enabled).
*/
force_reload?: H.In<boolean>;
}): H.Ptr<R.Image>;
}