CFx SDK Documentation  2020SP3
GiRasterWrappers.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 #ifndef __OD_GI_RASTER_WRAPPERS__
25 #define __OD_GI_RASTER_WRAPPERS__
26 
27 #include "Gi/GiExport.h"
28 #include "Gi/GiRasterImage.h"
29 #include "Gi/GiImage.h"
30 #include "UInt8Array.h"
31 
32 #include "TD_PackPush.h"
33 
45 {
46  OdUInt32 m_pixelWidth, m_pixelHeight, m_colorDepth, m_palSize, m_alignment;
48  Units m_units;
49  double m_xPelsPerUnit, m_yPelsPerUnit;
50  OdUInt8* m_pPal;
51  OdGiRasterImage::ImageSource m_imageSource;
52  OdGiRasterImage::TransparencyMode m_transparencyMode;
53  OdString m_fileName;
54 public:
57 
69  static OdGiRasterImagePtr createObject(OdUInt32 pixelWidth, OdUInt32 pixelHeight, Units units = kNone, double xPelsPerUnit = 0.0, double yPelsPerUnit = 0.0);
70 
82  static OdGiRasterImagePtr createObject(OdUInt32 pixelWidth, OdUInt32 pixelHeight, OdUInt32 colorDepth, Units units = kNone, double xPelsPerUnit = 0.0, double yPelsPerUnit = 0.0);
83 
91  static OdGiRasterImagePtr createObject(const OdGiRasterImage *pSourceImage);
92 
97  void setFrom(const OdGiRasterImage *pSourceImage);
107  void copyFrom(const OdRxObject *pSource);
128  ODCOLORREF color(OdUInt32 colorIndex) const;
140  void paletteData(OdUInt8* bytes) const;
153  const OdUInt8* scanLines() const;
174  void scanLines(OdUInt8* scnLines, OdUInt32 firstScanline, OdUInt32 numLines = 1) const;
199  Units defaultResolution(double& xPelsPerUnit, double& yPelsPerUnit) const;
200 
205  void setPixelWidth(OdUInt32 pixelWidth);
210  void setPixelHeight(OdUInt32 pixelHeight);
211 
216  void setColorDepth(OdUInt32 colorDepth);
226 
232  void setPalette(OdUInt32 paletteSize, OdUInt8* paletteData);
233 
241 
248  void setDefaultResolution(Units units, double xPelsPerUnit, double yPelsPerUnit);
265  const OdString &sourceFileName() const;
270  void setSourceFileName(const OdString &fileName);
280 };
281 
282 class OdGiImageBGRA32;
283 
293 {
294 protected:
297 public:
300 
329  ODCOLORREF color(OdUInt32 colorIndex) const;
341  void paletteData(OdUInt8* bytes) const;
362  const OdUInt8* scanLines() const;
380  void scanLines(OdUInt8* scnLines, OdUInt32 firstScanline, OdUInt32 numLines = 1) const;
404  OdGiRasterImage::Units defaultResolution(double& xPelsPerUnit, double& yPelsPerUnit) const;
431  void copyFrom(const OdRxObject *pSource);
432 };
433 
440 {
441 protected:
443 public:
446 
464  void copyFrom(const OdRxObject *pSource);
465 };
466 
473 {
474 private:
475  OdGiPixelBGRA32Array m_pxArray;
476 public:
479 
497  void copyFrom(const OdRxObject *pSource);
498 };
499 
506 {
507  OdUInt32 m_pixelWidth, m_pixelHeight, m_colorDepth, m_alignment;
509  Units m_units;
510  double m_xPelsPerUnit, m_yPelsPerUnit;
511  OdGiRasterImage::ImageSource m_imageSource;
512  OdString m_fileName;
513  OdGiRasterImage::TransparencyMode m_transparencyMode;
514  int m_transparentColor;
515  OdUInt8Array m_palData;
516  OdUInt8Array m_pixData;
517 public:
520 
525  void setFrom(const OdGiRasterImage* pOrig);
526 
550  Units defaultResolution(double& xPelsPerUnit, double& yPelsPerUnit) const;
563  ODCOLORREF color(OdUInt32 colorIndex) const;
571  void paletteData(OdUInt8* bytes) const;
598  void scanLines(OdUInt8* scnLines, OdUInt32 firstScanline, OdUInt32 numLines = 1) const;
610  const OdUInt8* scanLines() const;
633  int transparentColor() const;
641  const OdString &sourceFileName() const;
659  void setSourceFileName(const OdString &fileName);
674  void copyFrom(const OdRxObject *pSource);
675 };
676 
691 {
692  OdGiRasterImagePtr m_pOrig;
693 public:
696 
701  void setOriginal(const OdGiRasterImage* pOrig);
705  const OdGiRasterImage *original() const;
726  Units defaultResolution(double& xPelsPerUnit, double& yPelsPerUnit) const;
739  ODCOLORREF color(OdUInt32 colorIndex) const;
747  void paletteData(OdUInt8* bytes) const;
774  void scanLines(OdUInt8* scnLines, OdUInt32 firstScanline, OdUInt32 numLines = 1) const;
786  const OdUInt8* scanLines() const;
808  int transparentColor() const;
816  const OdString &sourceFileName() const;
834  void setSourceFileName(const OdString &fileName);
845  void* imp() const;
855  void copyFrom(const OdRxObject *pSource);
856 };
857 
869 {
870  RGBQUAD m_palette[2];
871  int m_transpColor;
872 public:
875 
883  static OdGiRasterImagePtr createObject(const OdGiRasterImage* pOrig, ODCOLORREF foregroundColor, ODCOLORREF backgroundColor, bool transparent);
884 
892  void setOriginal(const OdGiRasterImage* pOrig, ODCOLORREF foregroundColor, ODCOLORREF backgroundColor, bool transparent);
893 
903  ODCOLORREF color(OdUInt32 colorIndex) const;
915  void paletteData(OdUInt8* bytes) const;
929  int transparentColor() const;
939  void copyFrom(const OdRxObject *pSource);
940 };
941 
953 {
954 public:
957 
980  void scanLines(OdUInt8* scnLines, OdUInt32 firstScanline, OdUInt32 numLines = 1) const;
992  const OdUInt8* scanLines() const;
1002  void copyFrom(const OdRxObject *pSource);
1003 };
1004 
1016 {
1017 public:
1020 
1043  void scanLines(OdUInt8* scnLines, OdUInt32 firstScanline, OdUInt32 numLines = 1) const;
1055  const OdUInt8* scanLines() const;
1065  void copyFrom(const OdRxObject *pSource);
1066 };
1067 
1079 {
1080 public:
1083 
1094  ODCOLORREF color(OdUInt32 colorIndex) const;
1102  void paletteData(OdUInt8* bytes) const;
1103 
1121  void scanLines(OdUInt8* scnLines, OdUInt32 firstScanline, OdUInt32 numLines = 1) const;
1133  const OdUInt8* scanLines() const;
1143  void copyFrom(const OdRxObject *pSource);
1144 protected:
1145  virtual ODCOLORREF colorXform(ODCOLORREF color) const;
1146 };
1147 
1159 {
1160 public:
1163 
1178  void copyFrom(const OdRxObject *pSource);
1179 protected:
1180  virtual ODCOLORREF colorXform(ODCOLORREF color) const;
1181 };
1182 
1194 {
1195  int m_threshold;
1196 public:
1199 
1205  static OdGiRasterImagePtr createObject(const OdGiRasterImage* pOrig, int threshold = 127);
1215  void copyFrom(const OdRxObject *pSource);
1221  void setThreshold(OdUInt8 treshold) { m_threshold = treshold; if (m_threshold > 254) m_threshold = 254; };
1225  int threshold() const { return m_threshold; }
1226 protected:
1227  virtual ODCOLORREF colorXform(ODCOLORREF color) const;
1228 };
1229 
1239 {
1240 protected:
1244 public:
1247 
1256  static OdGiRasterImagePtr createObject( const OdGiRasterImage* pOrig, ODCOLORREF cutColor, OdUInt8 threshold = 0 );
1257 
1278  const OdUInt8* scanLines() const;
1296  void scanLines(OdUInt8* scnLines, OdUInt32 firstScanline, OdUInt32 numLines = 1) const;
1297 
1318  ODCOLORREF color(OdUInt32 colorIndex) const;
1330  void paletteData(OdUInt8* bytes) const;
1354  OdGiRasterImage::Units defaultResolution(double& xPelsPerUnit, double& yPelsPerUnit) const;
1381  void copyFrom(const OdRxObject *pSource);
1382 
1383 protected:
1385 };
1386 
1387 #if 0 // @@@TODO: implement at least nearest, bilinear and bicubic resamplers
1388 
1398 class ODGI_EXPORT OdGiNearestRasterResampler : public OdGiRasterImageWrapper
1399 {
1400  OdUInt32 m_newPixWidth, m_newPixHeight;
1401 public:
1402  OdGiNearestRasterResampler();
1403  virtual ~OdGiNearestRasterResampler();
1404 
1411  static OdGiRasterImagePtr createObject(const OdGiRasterImage* pOrig, OdUInt32 newPixWidth, OdUInt32 newPixHeight);
1429  void scanLines(OdUInt8* scnLines, OdUInt32 firstScanline, OdUInt32 numLines = 1) const;
1430 
1442  const OdUInt8* scanLines() const;
1446  OdRxObjectPtr clone() const;
1452  void copyFrom(const OdRxObject *pSource);
1453 };
1454 #endif
1455 
1456 #include "TD_PackPop.h"
1457 
1458 #endif // __OD_GI_RASTER_WRAPPERS__
OdGiMonochromaticRasterTransformer::threshold
int threshold() const
Definition: GiRasterWrappers.h:1225
OdGiLeftToRightRasterTransformer::clone
OdRxObjectPtr clone() const
OdGiRasterImageWrapper::colorDepth
OdUInt32 colorDepth() const
OdGiRasterImageHolder::pixelWidth
OdUInt32 pixelWidth() const
OdGiRasterImageHolder::pixelFormat
PixelFormatInfo pixelFormat() const
OdGiRasterImageDesc::createObject
static OdGiRasterImagePtr createObject(OdUInt32 pixelWidth, OdUInt32 pixelHeight, OdUInt32 colorDepth, Units units=kNone, double xPelsPerUnit=0.0, double yPelsPerUnit=0.0)
OdGiRasterImageBGRA32::m_transparencyMode
OdGiRasterImage::TransparencyMode m_transparencyMode
Definition: GiRasterWrappers.h:296
OdGiRasterImageWrapper::pixelHeight
OdUInt32 pixelHeight() const
OdGiRasterImageDesc::OdGiRasterImageDesc
OdGiRasterImageDesc()
OdGiRasterImageAlphaChannelAdder::~OdGiRasterImageAlphaChannelAdder
virtual ~OdGiRasterImageAlphaChannelAdder()
OdString
Definition: OdString.h:95
OdGiRasterImageHolder::clone
OdRxObjectPtr clone() const
OdGiRasterImageAlphaChannelAdder::numColors
OdUInt32 numColors() const
OdGiUpsideDownRasterTransformer::clone
OdRxObjectPtr clone() const
OdGiRasterImageHolder::scanLines
void scanLines(OdUInt8 *scnLines, OdUInt32 firstScanline, OdUInt32 numLines=1) const
OdGiRasterImageAlphaChannelAdder::pixelWidth
OdUInt32 pixelWidth() const
OdGiRasterImageWrapper::imp
void * imp() const
OdGiGrayscaleRasterTransformer::~OdGiGrayscaleRasterTransformer
virtual ~OdGiGrayscaleRasterTransformer()
OdRxObjectPtr
Definition: RxObject.h:345
GiRasterImage.h
OdGiRasterImageWrapper::imageSource
ImageSource imageSource() const
OdGiRasterImageDesc::scanLinesAlignment
OdUInt32 scanLinesAlignment() const
OdGiRasterImageDesc::~OdGiRasterImageDesc
virtual ~OdGiRasterImageDesc()
OdGiMonochromaticRasterTransformer
Definition: GiRasterWrappers.h:1194
OdGiGrayscaleRasterTransformer::copyFrom
void copyFrom(const OdRxObject *pSource)
OdGiRasterImageDesc::clone
OdRxObjectPtr clone() const
OdUInt8
unsigned char OdUInt8
Definition: OdPlatformSettings.h:759
OdGiRasterImageWrapper::pixelFormat
PixelFormatInfo pixelFormat() const
OdGiRasterImage::tagPixelFormatInfo
Definition: GiRasterImage.h:90
OdGiRasterImageAlphaChannelAdder::defaultResolution
OdGiRasterImage::Units defaultResolution(double &xPelsPerUnit, double &yPelsPerUnit) const
OdGiRasterImageHolder::numColors
OdUInt32 numColors() const
OdGiRasterImageWrapper::paletteData
void paletteData(OdUInt8 *bytes) const
OdGiRasterImageWrapper::~OdGiRasterImageWrapper
virtual ~OdGiRasterImageWrapper()
OdGiRasterImageBGRA32::setTransparencyMode
void setTransparencyMode(OdGiRasterImage::TransparencyMode mode)
OdGiRasterImageWrapper::numColors
OdUInt32 numColors() const
OdGiRasterImageDesc::setImageSource
void setImageSource(OdGiRasterImage::ImageSource source)
OdGiRasterImageBGRA32Copy::clone
OdRxObjectPtr clone() const
OdGiRasterImageBGRA32Holder::copyFrom
void copyFrom(const OdRxObject *pSource)
OdGiRasterImageBGRA32::transparencyMode
OdGiRasterImage::TransparencyMode transparencyMode() const
OdGiRasterImageDesc::setDefaultResolution
void setDefaultResolution(Units units, double xPelsPerUnit, double yPelsPerUnit)
OdGiInversionRasterTransformer::OdGiInversionRasterTransformer
OdGiInversionRasterTransformer()
OdGiRasterImageWrapper::scanLines
const OdUInt8 * scanLines() const
OdGiRasterImageHolder::transparencyMode
TransparencyMode transparencyMode() const
OdGiRasterImageAlphaChannelAdder::supportedParams
OdUInt32 supportedParams() const
OdGiRasterImageDesc::setPixelWidth
void setPixelWidth(OdUInt32 pixelWidth)
OdGiRasterImageWrapper::setOriginal
void setOriginal(const OdGiRasterImage *pOrig)
OdGiUpsideDownRasterTransformer::scanLines
const OdUInt8 * scanLines() const
OdGiRasterImageBGRA32Holder::createObject
static OdGiRasterImagePtr createObject(OdGiImageBGRA32 *pImage, OdGiRasterImage::TransparencyMode transparencyMode=OdGiRasterImage::kTransparency8Bit)
OdGiBitonalRasterTransformer::copyFrom
void copyFrom(const OdRxObject *pSource)
OdGiRasterImageDesc::copyFrom
void copyFrom(const OdRxObject *pSource)
OdGiRasterImageHolder::sourceFileName
const OdString & sourceFileName() const
OdGiRasterImageAlphaChannelAdder::m_pOrigImage
const OdGiRasterImage * m_pOrigImage
Definition: GiRasterWrappers.h:1241
green
GLfloat green
Definition: gles2_ext.h:147
OdRxObject
Definition: RxObject.h:564
OdGiRasterImageWrapper::sourceFileName
const OdString & sourceFileName() const
OdGiBitonalRasterTransformer::~OdGiBitonalRasterTransformer
virtual ~OdGiBitonalRasterTransformer()
OdGiRasterImageAlphaChannelAdder::copyFrom
void copyFrom(const OdRxObject *pSource)
OdGiRasterImageHolder::setTransparencyMode
void setTransparencyMode(TransparencyMode mode)
OdGiBitonalRasterTransformer::paletteData
void paletteData(OdUInt8 *bytes) const
blue
GLfloat GLfloat blue
Definition: gles2_ext.h:147
source
GLsizei GLsizei GLchar * source
Definition: gles2_ext.h:282
OdGiRasterImageDesc::pixelFormat
OdGiRasterImage::PixelFormatInfo & pixelFormat()
OdGiRasterImageBGRA32::m_pBGRAImage
OdGiImageBGRA32 * m_pBGRAImage
Definition: GiRasterWrappers.h:295
OdGiLeftToRightRasterTransformer::createObject
static OdGiRasterImagePtr createObject(const OdGiRasterImage *pOrig)
OdGiRasterImageAlphaChannelAdder::colorDepth
OdUInt32 colorDepth() const
OdGiRasterImageDesc::paletteData
void paletteData(OdUInt8 *bytes) const
OdGiRasterImageHolder::paletteData
void paletteData(OdUInt8 *bytes) const
OdGiInversionRasterTransformer::clone
OdRxObjectPtr clone() const
OdGiMonochromaticRasterTransformer::colorXform
virtual ODCOLORREF colorXform(ODCOLORREF color) const
OdGiRasterImageDesc::setPalette
void setPalette(OdUInt32 paletteSize, OdUInt8 *paletteData)
OdArray< OdGiPixelBGRA32, OdMemoryAllocator< OdGiPixelBGRA32 > >
OdGiLeftToRightRasterTransformer::scanLines
const OdUInt8 * scanLines() const
OdGiRasterImageAlphaChannelAdder::scanLineSize
OdUInt32 scanLineSize() const
OdGiInversionRasterTransformer::paletteData
void paletteData(OdUInt8 *bytes) const
TD_PackPop.h
OdGiRasterImageWrapper::color
ODCOLORREF color(OdUInt32 colorIndex) const
OdGiUpsideDownRasterTransformer
Definition: GiRasterWrappers.h:953
OdGiRasterImageBGRA32::scanLinesAlignment
OdUInt32 scanLinesAlignment() const
OdGiRasterImageAlphaChannelAdder::m_nPixelAlphaThreshold
OdUInt8 m_nPixelAlphaThreshold
Definition: GiRasterWrappers.h:1243
OdGiRasterImageAlphaChannelAdder::clone
OdRxObjectPtr clone() const
OdGiRasterImageWrapper::scanLinesAlignment
OdUInt32 scanLinesAlignment() const
OdGiRasterImageBGRA32::pixelFormat
OdGiRasterImage::PixelFormatInfo pixelFormat() const
OdGiRasterImageBGRA32
Definition: GiRasterWrappers.h:293
OdGiRasterImageHolder::OdGiRasterImageHolder
OdGiRasterImageHolder()
OdGiLeftToRightRasterTransformer
Definition: GiRasterWrappers.h:1016
OdGiMonochromaticRasterTransformer::OdGiMonochromaticRasterTransformer
OdGiMonochromaticRasterTransformer()
OdGiRasterImageBGRA32::defaultResolution
OdGiRasterImage::Units defaultResolution(double &xPelsPerUnit, double &yPelsPerUnit) const
OdGiRasterImageBGRA32::colorDepth
OdUInt32 colorDepth() const
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdGiRasterImageDesc::supportedParams
OdUInt32 supportedParams() const
ODGI_EXPORT
#define ODGI_EXPORT
Definition: GiExport.h:35
OdGiRasterImageDesc::defaultResolution
Units defaultResolution(double &xPelsPerUnit, double &yPelsPerUnit) const
OdGiRasterImageWrapper::defaultResolution
Units defaultResolution(double &xPelsPerUnit, double &yPelsPerUnit) const
OdGiRasterImageBGRA32Holder::clone
OdRxObjectPtr clone() const
OdGiRasterImageDesc::numColors
OdUInt32 numColors() const
OdGiRasterImageWrapper::pixelWidth
OdUInt32 pixelWidth() const
OdGiRasterImageWrapper::original
const OdGiRasterImage * original() const
OdGiUpsideDownRasterTransformer::~OdGiUpsideDownRasterTransformer
virtual ~OdGiUpsideDownRasterTransformer()
OdGiGrayscaleRasterTransformer::clone
OdRxObjectPtr clone() const
OdGiRasterImageWrapper::copyFrom
void copyFrom(const OdRxObject *pSource)
OdPdfPublish::Lighting::kNone
@ kNone
Light mode is inherited from the annotation.
Definition: PdfPublishCommon.h:160
OdGiRasterImageHolder::supportedParams
OdUInt32 supportedParams() const
GiImage.h
OdGiRasterImage::kTransparency8Bit
@ kTransparency8Bit
Definition: GiRasterImage.h:86
OdGiRasterImageHolder::createObject
static OdGiRasterImagePtr createObject(const OdGiRasterImage *pImage)
OdGiRasterImageWrapper::paletteDataSize
OdUInt32 paletteDataSize() const
OdGiRasterImageBGRA32Holder::OdGiRasterImageBGRA32Holder
OdGiRasterImageBGRA32Holder()
OdGiLeftToRightRasterTransformer::copyFrom
void copyFrom(const OdRxObject *pSource)
OdGiRasterImageBGRA32::scanLineSize
OdUInt32 scanLineSize() const
OdGiRasterImageBGRA32Copy::OdGiRasterImageBGRA32Copy
OdGiRasterImageBGRA32Copy()
OdGiRasterImageBGRA32::pixelHeight
OdUInt32 pixelHeight() const
OdGiRasterImageHolder::setFrom
void setFrom(const OdGiRasterImage *pOrig)
OdGiRasterImageWrapper::clone
OdRxObjectPtr clone() const
OdGiRasterImageAlphaChannelAdder::transparencyMode
OdGiRasterImage::TransparencyMode transparencyMode() const
OdGiBitonalRasterTransformer::clone
OdRxObjectPtr clone() const
OdSmartPtr< OdGiRasterImage >
OdGiRasterImageDesc::scanLines
const OdUInt8 * scanLines() const
OdGiInversionRasterTransformer::copyFrom
void copyFrom(const OdRxObject *pSource)
OdGiRasterImageBGRA32Copy
Definition: GiRasterWrappers.h:473
OdGiRasterImageWrapper::setSourceFileName
void setSourceFileName(const OdString &fileName)
OdGiRasterImageAlphaChannelAdder::imageSource
OdGiRasterImage::ImageSource imageSource() const
OdGiRasterImageBGRA32::color
ODCOLORREF color(OdUInt32 colorIndex) const
OdGiRasterImageAlphaChannelAdder
Definition: GiRasterWrappers.h:1239
OdGiBitonalRasterTransformer
Definition: GiRasterWrappers.h:869
OdGiRasterImageAlphaChannelAdder::scanLinesAlignment
OdUInt32 scanLinesAlignment() const
OdGiRasterImageDesc::createObject
static OdGiRasterImagePtr createObject(OdUInt32 pixelWidth, OdUInt32 pixelHeight, Units units=kNone, double xPelsPerUnit=0.0, double yPelsPerUnit=0.0)
OdGiRasterImageBGRA32::scanLines
const OdUInt8 * scanLines() const
OdGiRasterImageBGRA32Holder
Definition: GiRasterWrappers.h:440
OdGiRasterImageAlphaChannelAdder::paletteData
void paletteData(OdUInt8 *bytes) const
OdGiRasterImageHolder::paletteDataSize
OdUInt32 paletteDataSize() const
OdGiRasterImageWrapper::supportedParams
OdUInt32 supportedParams() const
OdGiRasterImageDesc::pixelHeight
OdUInt32 pixelHeight() const
OdGiMonochromaticRasterTransformer::~OdGiMonochromaticRasterTransformer
virtual ~OdGiMonochromaticRasterTransformer()
OdGiRasterImageParam
Definition: GiRasterImage.h:474
OdGiRasterImageHolder::colorDepth
OdUInt32 colorDepth() const
OdGiUpsideDownRasterTransformer::scanLines
void scanLines(OdUInt8 *scnLines, OdUInt32 firstScanline, OdUInt32 numLines=1) const
OdGiRasterImageAlphaChannelAdder::color
ODCOLORREF color(OdUInt32 colorIndex) const
OdGiMonochromaticRasterTransformer::copyFrom
void copyFrom(const OdRxObject *pSource)
OdGiRasterImageBGRA32Copy::createObject
static OdGiRasterImagePtr createObject(OdGiImageBGRA32 *pImage, OdGiRasterImage::TransparencyMode transparencyMode=OdGiRasterImage::kTransparency8Bit)
OdGiRasterImageWrapper::scanLines
void scanLines(OdUInt8 *scnLines, OdUInt32 firstScanline, OdUInt32 numLines=1) const
OdGiBitonalRasterTransformer::pixelFormat
PixelFormatInfo pixelFormat() const
OdGiRasterImageDesc::setSourceFileName
void setSourceFileName(const OdString &fileName)
OdGiRasterImageHolder::setSourceFileName
void setSourceFileName(const OdString &fileName)
OdGiInversionRasterTransformer
Definition: GiRasterWrappers.h:1079
TD_PackPush.h
OdGiRasterImageHolder::transparentColor
int transparentColor() const
OdGiRasterImageBGRA32::~OdGiRasterImageBGRA32
virtual ~OdGiRasterImageBGRA32()
OdGiImageBGRA32
Definition: GiImage.h:213
OdGiRasterImageDesc::color
ODCOLORREF color(OdUInt32 colorIndex) const
OdGiGrayscaleRasterTransformer
Definition: GiRasterWrappers.h:1159
OdGiMonochromaticRasterTransformer::createObject
static OdGiRasterImagePtr createObject(const OdGiRasterImage *pOrig, int threshold=127)
OdGiBitonalRasterTransformer::setOriginal
void setOriginal(const OdGiRasterImage *pOrig, ODCOLORREF foregroundColor, ODCOLORREF backgroundColor, bool transparent)
OdGiRasterImageBGRA32Copy::copyFrom
void copyFrom(const OdRxObject *pSource)
OdGiRasterImage::TransparencyMode
TransparencyMode
Definition: GiRasterImage.h:82
OdGiRasterImageDesc::createObject
static OdGiRasterImagePtr createObject(const OdGiRasterImage *pSourceImage)
OdGiRasterImageAlphaChannelAdder::paletteDataSize
OdUInt32 paletteDataSize() const
OdGiRasterImageAlphaChannelAdder::setTransparencyMode
void setTransparencyMode(OdGiRasterImage::TransparencyMode mode)
OdGiGrayscaleRasterTransformer::createObject
static OdGiRasterImagePtr createObject(const OdGiRasterImage *pOrig)
OdGiRasterImageWrapper::scanLineSize
OdUInt32 scanLineSize() const
OdGiInversionRasterTransformer::scanLines
const OdUInt8 * scanLines() const
OdGiRasterImageDesc::setFrom
void setFrom(const OdGiRasterImage *pSourceImage)
OdGiRasterImageBGRA32::supportedParams
OdUInt32 supportedParams() const
OdGiRasterImageHolder::defaultResolution
Units defaultResolution(double &xPelsPerUnit, double &yPelsPerUnit) const
OdGiBitonalRasterTransformer::paletteDataSize
OdUInt32 paletteDataSize() const
OdGiRasterImageBGRA32::paletteData
void paletteData(OdUInt8 *bytes) const
OdGiRasterImageBGRA32::copyFrom
void copyFrom(const OdRxObject *pSource)
OdGiUpsideDownRasterTransformer::createObject
static OdGiRasterImagePtr createObject(const OdGiRasterImage *pOrig)
OdGiRasterImageAlphaChannelAdder::pixelHeight
OdUInt32 pixelHeight() const
OdGiMonochromaticRasterTransformer::clone
OdRxObjectPtr clone() const
OdGiRasterImageWrapper::setTransparencyMode
void setTransparencyMode(TransparencyMode mode)
OdGiRasterImageDesc::scanLines
void scanLines(OdUInt8 *scnLines, OdUInt32 firstScanline, OdUInt32 numLines=1) const
OdGiRasterImageDesc::pixelWidth
OdUInt32 pixelWidth() const
OdGiInversionRasterTransformer::~OdGiInversionRasterTransformer
virtual ~OdGiInversionRasterTransformer()
GiExport.h
OdGiRasterImage::Units
Units
Definition: GiRasterImage.h:42
OdGiRasterImageDesc::paletteDataSize
OdUInt32 paletteDataSize() const
OdGiRasterImageAlphaChannelAdder::pixelFormat
OdGiRasterImage::PixelFormatInfo pixelFormat() const
OdGiBitonalRasterTransformer::OdGiBitonalRasterTransformer
OdGiBitonalRasterTransformer()
OdGiInversionRasterTransformer::color
ODCOLORREF color(OdUInt32 colorIndex) const
OdGiGrayscaleRasterTransformer::colorXform
virtual ODCOLORREF colorXform(ODCOLORREF color) const
UInt8Array.h
OdGiRasterImageWrapper
Definition: GiRasterWrappers.h:691
OdGiRasterImageHolder::pixelHeight
OdUInt32 pixelHeight() const
OdGiLeftToRightRasterTransformer::~OdGiLeftToRightRasterTransformer
virtual ~OdGiLeftToRightRasterTransformer()
OdGiRasterImageBGRA32::pixelWidth
OdUInt32 pixelWidth() const
OdGiRasterImageWrapper::setImageSource
void setImageSource(ImageSource source)
OdGiRasterImageDesc::setScanLinesAlignment
void setScanLinesAlignment(OdUInt32 alignment)
OdGiRasterImageBGRA32Copy::~OdGiRasterImageBGRA32Copy
~OdGiRasterImageBGRA32Copy()
OdGiRasterImageHolder::imageSource
ImageSource imageSource() const
OdGiUpsideDownRasterTransformer::OdGiUpsideDownRasterTransformer
OdGiUpsideDownRasterTransformer()
OdGiRasterImageBGRA32::paletteDataSize
OdUInt32 paletteDataSize() const
OdGiLeftToRightRasterTransformer::scanLines
void scanLines(OdUInt8 *scnLines, OdUInt32 firstScanline, OdUInt32 numLines=1) const
OdGiRasterImageBGRA32Holder::~OdGiRasterImageBGRA32Holder
~OdGiRasterImageBGRA32Holder()
OdGiRasterImageHolder
Definition: GiRasterWrappers.h:506
OdGiRasterImageAlphaChannelAdder::m_clPixelAlpha
ODCOLORREF m_clPixelAlpha
Definition: GiRasterWrappers.h:1242
ODCOLORREF
#define ODCOLORREF
Definition: OdPlatform.h:883
OdGiGrayscaleRasterTransformer::OdGiGrayscaleRasterTransformer
OdGiGrayscaleRasterTransformer()
OdGiRasterImageWrapper::cloneOriginal
OdGiRasterImagePtr cloneOriginal() const
OdGiRasterImageDesc::colorDepth
OdUInt32 colorDepth() const
OdGiRasterImageDesc::pixelFormat
PixelFormatInfo pixelFormat() const
OdGiRasterImageDesc::setPixelHeight
void setPixelHeight(OdUInt32 pixelHeight)
OdGiRasterImageBGRA32::clone
OdRxObjectPtr clone() const
tagRGBQUAD
Definition: OdPlatform.h:913
OdGiRasterImageHolder::scanLineSize
OdUInt32 scanLineSize() const
OdGiRasterImageHolder::~OdGiRasterImageHolder
virtual ~OdGiRasterImageHolder()
OdGiRasterImageBGRA32::imageSource
OdGiRasterImage::ImageSource imageSource() const
OdGiRasterImage::ImageSource
ImageSource
Definition: GiRasterImage.h:67
OdGiRasterImageBGRA32::OdGiRasterImageBGRA32
OdGiRasterImageBGRA32()
OdGiRasterImageAlphaChannelAdder::scanLines
const OdUInt8 * scanLines() const
OdGiRasterImageHolder::setImageSource
void setImageSource(ImageSource source)
OdGiRasterImageDesc::sourceFileName
const OdString & sourceFileName() const
OdGiInversionRasterTransformer::colorXform
virtual ODCOLORREF colorXform(ODCOLORREF color) const
OdGiRasterImageAlphaChannelAdder::scanLines
void scanLines(OdUInt8 *scnLines, OdUInt32 firstScanline, OdUInt32 numLines=1) const
OdGiRasterImageBGRA32Holder::m_ImageCopy
OdGiImageBGRA32 m_ImageCopy
Definition: GiRasterWrappers.h:442
OdGiInversionRasterTransformer::scanLines
void scanLines(OdUInt8 *scnLines, OdUInt32 firstScanline, OdUInt32 numLines=1) const
OdGiRasterImageHolder::color
ODCOLORREF color(OdUInt32 colorIndex) const
OdGiRasterImageAlphaChannelAdder::createObject
static OdGiRasterImagePtr createObject(const OdGiRasterImage *pOrig, ODCOLORREF cutColor, OdUInt8 threshold=0)
OdGiRasterImageBGRA32::createObject
static OdGiRasterImagePtr createObject(OdGiImageBGRA32 *pImage, OdGiRasterImage::TransparencyMode transparencyMode=OdGiRasterImage::kTransparency8Bit)
OdGiBitonalRasterTransformer::color
ODCOLORREF color(OdUInt32 colorIndex) const
OdGiRasterImageAlphaChannelAdder::OdGiRasterImageAlphaChannelAdder
OdGiRasterImageAlphaChannelAdder()
OdGiRasterImageAlphaChannelAdder::getAlphaValue
OdUInt8 getAlphaValue(OdUInt8 red, OdUInt8 green, OdUInt8 blue) const
OdGiRasterImageBGRA32::scanLines
void scanLines(OdUInt8 *scnLines, OdUInt32 firstScanline, OdUInt32 numLines=1) const
OdGiRasterImageDesc::scanLineSize
OdUInt32 scanLineSize() const
OdGiBitonalRasterTransformer::numColors
OdUInt32 numColors() const
OdGiRasterImageDesc
Definition: GiRasterWrappers.h:45
OdGiRasterImageHolder::scanLinesAlignment
OdUInt32 scanLinesAlignment() const
OdGiMonochromaticRasterTransformer::setThreshold
void setThreshold(OdUInt8 treshold)
Definition: GiRasterWrappers.h:1221
OdGiRasterImageDesc::transparencyMode
OdGiRasterImage::TransparencyMode transparencyMode() const
OdGiRasterImageDesc::setTransparencyMode
void setTransparencyMode(OdGiRasterImage::TransparencyMode mode)
OdGiRasterImageBGRA32::numColors
OdUInt32 numColors() const
OdGiBitonalRasterTransformer::createObject
static OdGiRasterImagePtr createObject(const OdGiRasterImage *pOrig, ODCOLORREF foregroundColor, ODCOLORREF backgroundColor, bool transparent)
OdGiLeftToRightRasterTransformer::OdGiLeftToRightRasterTransformer
OdGiLeftToRightRasterTransformer()
OdGiRasterImage
Definition: GiRasterImage.h:37
OdGiRasterImageDesc::setColorDepth
void setColorDepth(OdUInt32 colorDepth)
OdGiRasterImageDesc::imageSource
OdGiRasterImage::ImageSource imageSource() const
OdGiRasterImageWrapper::transparentColor
int transparentColor() const
OdGiUpsideDownRasterTransformer::copyFrom
void copyFrom(const OdRxObject *pSource)
OdGiBitonalRasterTransformer::transparentColor
int transparentColor() const
OdGiRasterImageWrapper::transparencyMode
TransparencyMode transparencyMode() const
OdGiInversionRasterTransformer::createObject
static OdGiRasterImagePtr createObject(const OdGiRasterImage *pOrig)
OdGiRasterImageHolder::scanLines
const OdUInt8 * scanLines() const
OdGiRasterImageHolder::copyFrom
void copyFrom(const OdRxObject *pSource)
OdGiRasterImageWrapper::OdGiRasterImageWrapper
OdGiRasterImageWrapper()