Aurelon Open API
8.1.1
Loading...
Searching...
No Matches
AOI_Raster.cpp
1
#include "./AOI_Raster.h"
2
#include "./AOI_Document.h"
3
#include "../GRaster.h"
4
5
using namespace
aur;
6
using namespace
aur::PDF;
7
15
AOI_Object_Raster
*
AOI_Object_Raster::Create
(
AOI_Document
* document,
AOI_Object_Bitmap
* bitmap )
16
{
17
return
(
AOI_Object_Raster
*)
new
Raster( document->mDocument, BitmapPtr(bitmap) );
18
}
19
34
bool
AOI_Object_Raster::IsMask
()
const
35
{
36
return
RasterPtr(
this
)->GetTransparency();
37
}
38
46
AOI_ColorSpacePtr
AOI_Object_Raster::GetColorSpace
()
const
47
{
48
return
(AOI_ColorSpacePtr)RasterPtr(
this
)->GetColorSpace();
49
}
50
58
void
AOI_Object_Raster::GetBitmapBounds
( int32_t& width, int32_t& height )
const
59
{
60
LRectangle bounds;
61
RasterPtr(
this
)->GetBitmapBounds( bounds );
62
width = bounds.right-bounds.left;
63
height = bounds.bottom-bounds.top;
64
}
65
74
AOI_Object_BitmapPtr
AOI_Object_Raster::GetBitmap
()
const
75
{
76
// hard cast
77
return
(
AOI_Object_BitmapPtr
)RasterPtr(
this
)->GetBitmap();
78
}
79
88
void
AOI_Object_Raster::GetMapping
(
AOI_Mapping
& map )
const
89
{
90
Mapping m = RasterPtr(
this
)->mapping();
91
::memcpy( map.map, m.map, 9 *
sizeof
(
float
) );
92
}
93
101
void
AOI_Object_Raster::GetContour
(
AOI_ContourPtr
ioContour )
const
102
{
103
Contour c;
104
RasterPtr(
this
)->GetContour( &c );
105
ioContour = (
AOI_ContourPtr
)&c;
106
}
AOI_Contour
Container for path(s)
Definition
AOI_Contour.h:11
AOI_Document
PDF Document.
Definition
AOI_Document.h:35
AOI_Mapping
3x3 matrix
Definition
AOI_Types.h:113
AOI_Object_Bitmap
BitmapT container.
Definition
AOI_Bitmap.h:23
AOI_Object_Raster
Image.
Definition
AOI_Raster.h:13
AOI_Object_Raster::Create
static AOI_Object_Raster * Create(AOI_Document *document, AOI_Object_Bitmap *bitmap)
Definition
AOI_Raster.cpp:15
AOI_Object_Raster::GetContour
void GetContour(AOI_ContourPtr) const
Definition
AOI_Raster.cpp:101
AOI_Object_Raster::GetBitmapBounds
void GetBitmapBounds(int32_t &width, int32_t &height) const
Definition
AOI_Raster.cpp:58
AOI_Object_Raster::GetBitmap
AOI_Object_BitmapPtr GetBitmap() const
Definition
AOI_Raster.cpp:74
AOI_Object_Raster::GetColorSpace
AOI_ColorSpacePtr GetColorSpace() const
Definition
AOI_Raster.cpp:46
AOI_Object_Raster::GetMapping
void GetMapping(AOI_Mapping &) const
Definition
AOI_Raster.cpp:88
AOI_Object_Raster::IsMask
bool IsMask() const
Definition
AOI_Raster.cpp:34
desktop
Source
PDFEngine
OpenAPI
AOI_Raster.cpp
Generated by
1.11.0