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
5using namespace aur;
6using namespace aur::PDF;
7
16{
17 return (AOI_Object_Raster*)new Raster( document->mDocument, BitmapPtr(bitmap) );
18}
19
35{
36 return RasterPtr(this)->GetTransparency();
37}
38
46AOI_ColorSpacePtr AOI_Object_Raster::GetColorSpace() const
47{
48 return (AOI_ColorSpacePtr)RasterPtr(this)->GetColorSpace();
49}
50
58void 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
75{
76 // hard cast
77 return (AOI_Object_BitmapPtr)RasterPtr(this)->GetBitmap();
78}
79
89{
90 Mapping m = RasterPtr(this)->mapping();
91 ::memcpy( map.map, m.map, 9 * sizeof( float ) );
92}
93
102{
103 Contour c;
104 RasterPtr(this)->GetContour( &c );
105 ioContour = (AOI_ContourPtr)&c;
106}
Container for path(s)
Definition AOI_Contour.h:11
PDF Document.
3x3 matrix
Definition AOI_Types.h:113
BitmapT container.
Definition AOI_Bitmap.h:23
static AOI_Object_Raster * Create(AOI_Document *document, AOI_Object_Bitmap *bitmap)
void GetContour(AOI_ContourPtr) const
void GetBitmapBounds(int32_t &width, int32_t &height) const
AOI_Object_BitmapPtr GetBitmap() const
AOI_ColorSpacePtr GetColorSpace() const
void GetMapping(AOI_Mapping &) const
bool IsMask() const