1#include "./AOI_Bitmap.h"
5using namespace aur::PDF;
23 const BitmapT* bit = BitmapPtr(
this)->GetBitmap();
24 inBit.width = bit->width;
25 inBit.height = bit->height;
26 inBit.components = bit->components;
27 inBit.bits = bit->bits;
28 inBit.space = (AOI_ColorSpace*)bit->space;
29 inBit.rowBytes = bit->CalcRowBytes();
44 BitmapPtr(
this)->GetMaskRange( min, max );
66 return (AOI_Object_Bitmap::MaskType)BitmapPtr(
this)->
GetMaskType();
81 return BitmapPtr(
this)->GetMaskMin( idx );
96 return BitmapPtr(
this)->GetMaskMax( idx );
104 BitmapPtr(
this)->SetMaskNone();
114 return (AOI_ColorSpacePtr)BitmapPtr(
this)->GetColorSpace();
126 BitmapPtr(
this)->Open( NULL );
138 BitmapPtr(
this)->Close();
153 return BitmapPtr(
this)->GetPixel( x, y, *(Color*)&color );
156#define kTilePixels 128
174 char* p = (
char*)outData;
175 int32_t dsFull = ( kTilePixels * bm.components * bm.bits ) >> 3;
176 int32_t dsEnd = ( ( bm.width % kTilePixels ) * bm.components * bm.bits + 7 ) >> 3;
182 for( int32_t x = 0; x < bm.width; x += kTilePixels )
184 const uint8_t* d = BitmapPtr(
this)->GetPixelPtr( x , startLine );
185 ::memcpy( q, d, bm.width - x < kTilePixels ? dsEnd : dsFull );
MaskType GetMaskType() const
uint16_t GetMaskMin(uint16_t) const
void GetBitmapData(AOI_Bitmap &) const
AOI_Object_Bitmap * GetMaskImage() const
void CloseImageData() const
void OpenImageData() const
uint16_t GetMaskMax(uint16_t) const
void GetMaskRange(uint16_t[MAX_CHANNELS], uint16_t[MAX_CHANNELS]) const
bool GetImageData(uint32_t startLine, uint32_t count, void *outData) const
AOI_ColorSpacePtr GetColorSpace() const
float GetPixel(int32_t, int32_t, AOI_Color &) const