24 #ifndef _OD_ODGIRASTERIMAGE_H_
25 #define _OD_ODGIRASTERIMAGE_H_
68 kUndefinedSource = -1,
74 kFromImageBGRA32 = 11,
77 kFromPdfUnderlay = kFromOleObject,
83 kTransparencyDef = -1,
85 kTransparency1Bit = 1,
126 return bitsPerPixel == 24 &&
127 redOffset == 0 && greenOffset == 8 && blueOffset == 16 && numRedBits == 8 && numGreenBits == 8 && numBlueBits == 8;
151 return bitsPerPixel == 24 &&
152 redOffset == 16 && greenOffset == 8 && blueOffset == 0 && numRedBits == 8 && numGreenBits == 8 && numBlueBits == 8;
176 return bitsPerPixel == 16 &&
177 redOffset == 10 && greenOffset == 5 && blueOffset == 0 && numRedBits == 5 && numGreenBits == 5 && numBlueBits == 5;
201 return bitsPerPixel == 32 && alphaOffset == 24 && numAlphaBits == 8 &&
202 redOffset == 0 && greenOffset == 8 && blueOffset == 16 && numRedBits == 8 && numGreenBits == 8 && numBlueBits == 8;
228 return bitsPerPixel == 32 && alphaOffset == 24 && numAlphaBits == 8 &&
229 redOffset == 16 && greenOffset == 8 && blueOffset == 0 && numRedBits == 8 && numGreenBits == 8 && numBlueBits == 8;
438 double brightness = 50.0,
double contrast = 50.0,
double fade = 0.0,
ODCOLORREF backgroundColor = 0,
439 bool flipX =
false,
bool flipY =
false,
bool rotate90 =
false,
441 bool transparency =
false)
const;
461 virtual void *
imp()
const;
480 kImageSource = (1 << 0),
481 kTransparencyMode = (1 << 1),
482 kSourceFileName = (1 << 2)
OdSmartPtr< OdGiRasterImage > OdGiRasterImagePtr
OdSmartPtr< OdGiRasterImageParam > OdGiRasterImageParamPtr
virtual Units defaultResolution(double &xPelsPerUnit, double &yPelsPerUnit) const
virtual PixelFormatInfo pixelFormat() const =0
virtual OdUInt32 scanLineSize() const
virtual TransparencyMode transparencyMode() const
virtual ODCOLORREF color(OdUInt32 colorIndex) const =0
static OdUInt32 calcBMPScanLineSize(OdUInt32 pixelWidth, int colorDepth)
virtual OdUInt32 pixelHeight() const =0
virtual OdUInt32 scanLinesAlignment() const =0
OdSmartPtr< OdGiRasterImage > changeTransparencyMode(TransparencyMode mode)
OdSmartPtr< OdGiRasterImage > changeSourceFileName(const OdString &fileName)
ODRX_DECLARE_MEMBERS(OdGiRasterImage)
virtual OdUInt32 paletteDataSize() const =0
OdSmartPtr< OdGiRasterImage > convert(bool convertPaletteToRGB, double brightness=50.0, double contrast=50.0, double fade=0.0, ODCOLORREF backgroundColor=0, bool flipX=false, bool flipY=false, bool rotate90=false, const OdGiRasterImage *pDestDesc=0, bool transparency=false) const
virtual const OdUInt8 * scanLines() const =0
virtual void * imp() const
virtual void paletteData(OdUInt8 *bytes) const =0
virtual void scanLines(OdUInt8 *scnLines, OdUInt32 firstScanline, OdUInt32 numLines=1) const =0
virtual OdSmartPtr< OdGiRasterImage > crop(OdUInt32 x, OdUInt32 y, OdUInt32 width, OdUInt32 height) const
virtual OdUInt32 colorDepth() const =0
static OdUInt32 calcColorMask(OdUInt8 numColorBits, OdUInt8 colorOffset=0)
virtual ImageSource imageSource() const
virtual const OdString & sourceFileName() const
virtual OdUInt32 numColors() const =0
virtual OdUInt32 pixelWidth() const =0
OdSmartPtr< OdGiRasterImage > changeImageSource(ImageSource source, const OdChar *pFileName=NULL)
virtual int transparentColor() const
virtual void setImageSource(ImageSource source)
virtual void setSourceFileName(const OdString &fileName)
ODRX_DECLARE_MEMBERS(OdGiRasterImageParam)
virtual OdUInt32 supportedParams() const =0
virtual void setTransparencyMode(TransparencyMode mode)
GLint GLenum GLsizei width
GLsizei GLsizei GLchar * source
GLint GLenum GLsizei GLsizei height
bool operator==(const BlockRefPath &rA, const BlockRefPath &rB)
DOM.
@ kNone
Light mode is inherited from the annotation.