Blender
V2.93
source
blender
blenkernel
BKE_image_save.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software Foundation,
14
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
*
16
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17
* All rights reserved.
18
*/
19
#pragma once
20
21
#include "
DNA_scene_types.h
"
22
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
31
struct
Image
;
32
struct
Main
;
33
struct
ReportList
;
34
struct
Scene
;
35
36
typedef
struct
ImageSaveOptions
{
37
/* Context within which image is saved. */
38
struct
Main
*
bmain
;
39
struct
Scene
*
scene
;
40
41
/* Format and absolute file path. */
42
struct
ImageFormatData
im_format
;
43
char
filepath
[1024];
/* 1024 = FILE_MAX */
44
45
/* Options. */
46
bool
relative
;
47
bool
save_copy
;
48
bool
save_as_render
;
49
bool
do_newpath
;
50
}
ImageSaveOptions
;
51
52
void
BKE_image_save_options_init
(
struct
ImageSaveOptions
*opts,
53
struct
Main
*bmain,
54
struct
Scene
*
scene
);
55
bool
BKE_image_save
(
struct
ReportList
*reports,
56
struct
Main
*bmain,
57
struct
Image
*ima,
58
struct
ImageUser
*iuser,
59
struct
ImageSaveOptions
*opts);
60
61
#ifdef __cplusplus
62
}
63
#endif
ImageSaveOptions
struct ImageSaveOptions ImageSaveOptions
BKE_image_save_options_init
void BKE_image_save_options_init(struct ImageSaveOptions *opts, struct Main *bmain, struct Scene *scene)
Definition:
image_save.c:46
BKE_image_save
bool BKE_image_save(struct ReportList *reports, struct Main *bmain, struct Image *ima, struct ImageUser *iuser, struct ImageSaveOptions *opts)
Definition:
image_save.c:397
DNA_scene_types.h
Image
Definition:
imbuf/intern/dds/Image.h:36
scene
Scene scene
Definition:
deg_eval_copy_on_write.cc:120
ImageFormatData
Definition:
DNA_scene_types.h:403
ImageSaveOptions
Definition:
BKE_image_save.h:36
ImageSaveOptions::save_as_render
bool save_as_render
Definition:
BKE_image_save.h:48
ImageSaveOptions::relative
bool relative
Definition:
BKE_image_save.h:46
ImageSaveOptions::do_newpath
bool do_newpath
Definition:
BKE_image_save.h:49
ImageSaveOptions::im_format
struct ImageFormatData im_format
Definition:
BKE_image_save.h:42
ImageSaveOptions::scene
struct Scene * scene
Definition:
BKE_image_save.h:39
ImageSaveOptions::save_copy
bool save_copy
Definition:
BKE_image_save.h:47
ImageSaveOptions::bmain
struct Main * bmain
Definition:
BKE_image_save.h:38
ImageSaveOptions::filepath
char filepath[1024]
Definition:
BKE_image_save.h:43
ImageUser
Definition:
DNA_image_types.h:43
Main
Definition:
BKE_main.h:116
ReportList
Definition:
DNA_windowmanager_types.h:104
Scene
Definition:
DNA_scene_types.h:1684
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1