Adobe.com
Contents Suites Classes Class Index Member Index

AIRasterExport.h

Go to the documentation of this file.
00001 /*************************************************************************
00002 * ADOBE CONFIDENTIAL
00003 * ___________________
00004 *
00005 * Copyright 2017 Adobe Systems Incorporated
00006 * All Rights Reserved.
00007 *
00008 * NOTICE: All information contained herein is, and remains
00009 * the property of Adobe Systems Incorporated and its suppliers,
00010 * if any. The intellectual and technical concepts contained
00011 * herein are proprietary to Adobe Systems Incorporated and its
00012 * suppliers and are protected by all applicable intellectual property
00013 * laws, including trade secret and copyright laws.
00014 * Dissemination of this information or reproduction of this material
00015 * is strictly forbidden unless prior written permission is obtained
00016 * from Adobe Systems Incorporated.
00017 **************************************************************************/
00018 
00019 
00020 #pragma once
00021 
00022 #include "AITypes.h"
00023 #include "AIFilePath.h"
00024 #include "AIDictionary.h"
00025 #include "IAIRef.h"
00026 #include "AIHeaderBegin.h"
00027 
00028 
00029 #define kAIRasterExportSuite                                    "AI Raster Export Suite"
00030 #define kAIRasterExportSuiteVersion                             AIAPI_VERSION(1)
00031 
00032 
00033 enum AIRasterFileFormats:ai::uint8
00034 {
00035         kAIFormatUnknown = 0,
00036         kAIFormatPSD,
00037         kAIFormatTIFF
00038 };
00039 
00040 
00041 struct AIRasterExportSuite {
00042 
00043         // This function allows the client to export an art in various formats. It accepts several parameters:
00044         // @param hRaster is the opaque reference to an art object which need not be raster art. API will rasterize it first.
00045         // @param filePath is the location of exported file.
00046         // @param AIRasterFileFormats are the supported file formats.
00047         // @param ConstAIDictionaryRef is a dictionary variable taken up by the client.
00048         /*              
00049                 #include "AITIFFKeys.h"
00050                 #include "IAIDictionary.hpp"
00051                 #include "AIRasterExport.h"
00052                 #include "AITypes.h"
00053                 #include "AIDictionary.h"
00054                 #include "AIDictionaryKeyHelper.hpp"
00055 
00056                 use_suite_required(AIRasterExport)
00057                 use_suite_required(AIDictionary)
00058 
00059                 #define kAiAntiAlias                            "AntiAlias"
00060 
00061                 DictionaryKeyDeclareAndDefine(kAIAntiAliasKey, kAiAntiAlias);
00062 
00063                 AIErr ExportToTiff(const AIArtHandle hRaster, const ai::FilePath& path)
00064                 {
00065                         ai::Dictionary dict;
00066                         dict.Set(kAIAntiAliasKey, 1);
00067                         return sAIRasterExport->RasterExport(hRaster, path, kAIFormatTIFF, dict.get());
00068                 }
00069 
00070         */
00071         AIAPI AIErr(*RasterExport)(const AIArtHandle hRaster, const ai::FilePath& filePath, AIRasterFileFormats format,
00072                 ai::Ref<AIDictionaryRef> formatOptionsDict);
00073 
00074 };
00075 
00076 
00077 #include "AIHeaderEnd.h"
00078 
00079 
00080 


Contents Suites Classes Class Index Member Index
Adobe Solutions Network
 
Copyright © 2014 Adobe Systems Incorporated. All rights reserved.
Terms of Use Online Privacy Policy Adobe and accessibility Avoid software piracy Permissions and Trademarks