From e4e87e0c84e0eafd3a21364c2a8e5606631238b1 Mon Sep 17 00:00:00 2001 From: Ju Hee Son <juheeson@ajou.ac.kr> Date: Fri, 23 Jun 2023 00:55:40 +0900 Subject: [PATCH] Add new file --- .../3.11 image buffer (imbuf)" | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 "3. \353\217\205\353\246\275\355\230\225 \353\252\250\353\223\210/3.11 image buffer (imbuf)" diff --git "a/3. \353\217\205\353\246\275\355\230\225 \353\252\250\353\223\210/3.11 image buffer (imbuf)" "b/3. \353\217\205\353\246\275\355\230\225 \353\252\250\353\223\210/3.11 image buffer (imbuf)" new file mode 100644 index 0000000..9746933 --- /dev/null +++ "b/3. \353\217\205\353\246\275\355\230\225 \353\252\250\353\223\210/3.11 image buffer (imbuf)" @@ -0,0 +1,39 @@ +Image Buffer (imbuf) +This module provides access to Blender’s image manipulation API. + +It provides access to image buffers outside of Blender’s bpy.types.Image data-block context. + +Submodules + +Image Buffer Types (imbuf.types) +imbuf.load(filepath) +Load an image from a file. + +Parameters +filepath (string) – the filepath of the image. + +Returns +the newly loaded image. + +Return type +ImBuf + +imbuf.new(size) +Load a new image. + +Parameters +size (pair of ints) – The size of the image in pixels. + +Returns +the newly loaded image. + +Return type +ImBuf + +imbuf.write(image, filepath=image.filepath) +Write an image. + +Parameters +image (ImBuf) – the image to write. + +filepath (string) – Optional filepath of the image (fallback to the images file path). -- GitLab