InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ImageDumpUtils.h
1 /*************************************************************************
2 * ADOBE CONFIDENTIAL
3 * ___________________
4 *
5 * Copyright 2022 Adobe
6 * All Rights Reserved.
7 *
8 * NOTICE: All information contained herein is, and remains
9 * the property of Adobe and its suppliers, if any. The intellectual
10 * and technical concepts contained herein are proprietary to Adobe
11 * and its suppliers and are protected by all applicable intellectual
12 * property laws, including trade secret and copyright laws.
13 * Dissemination of this information or reproduction of this material
14 * is strictly forbidden unless prior written permission is obtained
15 * from Adobe.
16 **************************************************************************/
17 
18 #ifndef ImageDumpUtils_h
19 #define ImageDumpUtils_h
20 
21 #if MACINTOSH
22 
23 #include "IDVPlatformOffscreen.h"
24 
25 namespace ImageDumpUtils
26 {
27  /* For internal use only
28  * Dump CGImageRef to disk on desktop with given fileName
29  */
30  DV_ void DumpCGImageToDisk(CGImageRef image, std::string fileName);
31 
32  /* For internal use only
33  * Dump IDVPlatformOffscreen to disk on desktop with given fileName
34  */
35  DV_ void DumpOffScreenToDisk(IDVPlatformOffscreen* srcOffscreen, std::string fileName);
36 
37  /* For internal use only
38  * Dump CGContextRef to disk on desktop with given fileName
39  */
40  DV_ void DumpCGContextToDisk(CGContextRef ctx, std::string fileName);
41 }
42 
43 #endif //MACINTOSH
44 
45 #endif /* ImageDumpUtils_h */