InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ILibraryAssetThumbnail.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Mark VerMurlen
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //
23 // Reviewed: 9/25/98
24 //
25 // Purpose:
26 // This interface is a secondary interface to the LibraryAsset Boss. This interface
27 // controls reading and writing of the "Thumbnail" image of the asset.
28 //
29 //========================================================================================
30 
31 #ifndef __ILibraryAssetThumbnail__
32 #define __ILibraryAssetThumbnail__
33 
34 #include "IPMUnknown.h"
35 #include "LibraryProviderID.h"
36 
37 
38 class IPMStream;
39 
46 {
47 public:
48 
49  // This is the maximum x or y dimension of a thumbnail image
50  enum {
51  kLibAssetThumbnailMaxSize = 112
52  };
53 
60  virtual void Set(int16 xSize, int16 ySize, const void *bitmapPtr, int32 bitmapSize) = 0;
61 
66  virtual void GetDimensions(int16 &xSize, int16 &ySize) const = 0;
67 
71  virtual void GetImageSize(int32 &bitmapSize) const = 0;
72 
76  virtual void GetImage(void *bitmapPtr) const = 0;
77 
80  virtual void Delete() = 0;
81 
82 };
83 
84 
85 #endif