IRasterSourceFileQuery.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------------------+
2 |
3 | Supplied under applicable software license agreement.
4 |
5 | Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
6 |
7 +---------------------------------------------------------------------------------------*/
8 #pragma once
9 
11 
13 
16 
17 //=======================================================================================
19 // @remark Required library : DgnPlatform<ApiNumber>.lib i.e. DgnPlatform5.lib
20 // @bsiclass Bentley Systems
22 {
23 private:
24 
25 protected:
26  DGNPLATFORM_EXPORT virtual BentleyStatus _InitFrom (ElementHandleCR eh)=0;
27  DGNPLATFORM_EXPORT virtual BentleyStatus _InitFrom (DgnDocumentMonikerR moniker, UInt32 pageNumber)=0;
28  DGNPLATFORM_EXPORT virtual UInt64 _GetBitmapHeight () const = 0;
29  DGNPLATFORM_EXPORT virtual UInt64 _GetBitmapWidth () const = 0;
30  DGNPLATFORM_EXPORT virtual BentleyStatus _ReadToRGBA (byte *RgbaBuffer, size_t maxBufferLength, bool useBgIfNoAlpha) const=0;
31 
32 private:
33  virtual void MakeClassAbstract() = 0;
34 public:
35 public:
36 
40 
44  DGNPLATFORM_EXPORT BentleyStatus InitFrom (DgnDocumentMonikerR moniker, UInt32 pageNumber);
45 
48  DGNPLATFORM_EXPORT UInt64 GetBitmapHeight () const;
49 
52  DGNPLATFORM_EXPORT UInt64 GetBitmapWidth () const;
53 
59  DGNPLATFORM_EXPORT BentleyStatus ReadToRGBA (byte *RgbaBuffer, size_t maxBufferLength, bool useBgIfNoAlpha) const;
60 };
61 
62 
63 
65 
Interface that provides methods to query raster file information.
Definition: IRasterSourceFileQuery.h:21
#define END_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:69
#define DGNPLATFORM_EXPORT
Definition: DgnPlatform/ExportMacros.h:58
uint32_t UInt32
Definition: Bentley.r.h:128
A DgnDocumentMoniker identifies a file.
Definition: DgnDocumentManager.h:181
BentleyStatus
Definition: Bentley.h:208
unsigned char byte
Definition: Bentley.r.h:144
uint64_t UInt64
Definition: Bentley.r.h:131
#define BEGIN_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:68
struct DgnPlatform::ElementHandle const & ElementHandleCR
Definition: DgnPlatform.h:260
Interface to be adopted by a class the implements the reference-counting pattern. ...
Definition: RefCounted.h:34

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.