68 #ifndef __SnapshotUtils_h__ 69 #define __SnapshotUtils_h__ 75 #include "AGMGraphicsContext.h" 76 #include "AGMImageAccessor.h" 78 class SnapshotUtilsImpl;
112 kSSJPEGExcellentQuality,
121 kTryExactThenAdaptivePalette,
168 const PMReal& xScaleFactor = 1.0,
169 const PMReal& yScaleFactor = 1.0,
170 const PMReal& desiredRes = 72.0,
171 const PMReal& minRes = 72.0,
172 const PMReal& bleedAmount = 0.0,
174 bool8 fullResolutionGraphics = kFalse,
175 bool8 drawGray = kFalse,
176 bool8 addTransparencyAlpha = kFalse,
177 Transparencies transparencyQuality = kXPHigh,
178 const PMReal& greekBelowPtSize = 7.0,
179 bool8 antiAliasing = kTrue,
180 bool8 overprintPreview = kFalse
213 const PMRect& clippingBounds,
214 const PMMatrix& boundsToSpreadMatrix,
216 const PMReal& xScaleFactor = 1.0,
217 const PMReal& yScaleFactor = 1.0,
218 const PMReal& desiredRes = 72.0,
219 const PMReal& minRes = 72.0,
220 const PMReal& bleedAmount = 0.0,
222 bool8 fullResolutionGraphics = kFalse,
223 bool8 drawGray = kFalse,
224 bool8 addTransparencyAlpha = kFalse,
225 Transparencies transparencyQuality = kXPHigh,
226 const PMReal& greekBelowPtSize = 7.0,
227 bool8 antiAliasing = kTrue,
228 bool8 overprintPreview = kFalse
262 const PMRect& clippingBounds,
263 const PMMatrix& boundsToSpreadMatrix,
265 const PMReal& xScaleFactor = 1.0,
266 const PMReal& yScaleFactor = 1.0,
267 const PMReal& desiredRes = 72.0,
268 const PMReal& minRes = 72.0,
269 const PMReal& bleedAmount = 0.0,
271 bool8 fullResolutionGraphics = kFalse,
272 bool8 drawGray = kFalse,
273 bool8 addTransparencyAlpha = kFalse,
274 Transparencies transparencyQuality = kXPHigh,
275 const PMReal& greekBelowPtSize = 7.0,
276 bool8 antiAliasing = kTrue,
277 bool8 overprintPreview = kFalse
284 virtual ~SnapshotUtils();
292 ErrorCode GetStatus()
const;
297 void Draw(
const UID& itemUID);
308 ErrorCode ExportImage
312 bool8 colorMapped = kFalse
323 ErrorCode ExportImageToJPEG
326 SSJPEGEncoding encoding = kSSJPEGBaseline,
327 SSJPEGQuality quality = kSSJPEGExcellentQuality
335 ErrorCode ExportImageToTIFF
338 PaletteType paletteType = kNoPalette
349 ErrorCode ExportImageToGIF
352 PaletteType paletteType = kTryExactThenAdaptivePalette,
353 bool8 interlaced = kFalse
376 SnapshotUtilsImpl *fImpl;