Blender V4.3
BKE_image_save.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4#pragma once
5
6#include "DNA_scene_types.h"
7
12struct Image;
13struct ImageUser;
14struct Main;
15struct RenderResult;
16struct ReportList;
17struct Scene;
18
19/* Image datablock saving. */
20
22 /* Context within which image is saved. */
25
26 /* Format and absolute file path. */
28 char filepath[1024]; /* 1024 = FILE_MAX */
29
30 /* Options. */
35
36 /* Keep track of previous values for auto updates in UI. */
39};
40
42 Main *bmain,
43 Scene *scene,
44 Image *ima,
45 ImageUser *iuser,
46 const bool guess_path,
47 const bool save_as_render);
50
52 ReportList *reports, Main *bmain, Image *ima, ImageUser *iuser, const ImageSaveOptions *opts);
53
54/* Render saving. */
55
61 const RenderResult *rr,
62 const char *filepath,
63 const ImageFormatData *imf,
64 const bool save_as_render,
65 const char *view,
66 int layer);
67
73 RenderResult *rr,
74 const Scene *scene,
75 const bool stamp,
76 const char *filepath_basis,
77 const ImageFormatData *format = nullptr,
78 bool save_as_render = true);
bool BKE_image_save(ReportList *reports, Main *bmain, Image *ima, ImageUser *iuser, const ImageSaveOptions *opts)
bool BKE_image_render_write_exr(ReportList *reports, const RenderResult *rr, const char *filepath, const ImageFormatData *imf, const bool save_as_render, const char *view, int layer)
bool BKE_image_save_options_init(ImageSaveOptions *opts, Main *bmain, Scene *scene, Image *ima, ImageUser *iuser, const bool guess_path, const bool save_as_render)
Definition image_save.cc:82
void BKE_image_save_options_update(ImageSaveOptions *opts, const Image *image)
bool BKE_image_render_write(ReportList *reports, RenderResult *rr, const Scene *scene, const bool stamp, const char *filepath_basis, const ImageFormatData *format=nullptr, bool save_as_render=true)
void BKE_image_save_options_free(ImageSaveOptions *opts)
format
ImageFormatData im_format