#include <GiRasterWrappers.h>
|
| | OdGiRasterImageAlphaChannelAdder () |
| |
| virtual | ~OdGiRasterImageAlphaChannelAdder () |
| |
| OdUInt32 | scanLineSize () const |
| |
| const OdUInt8 * | scanLines () const |
| |
| void | scanLines (OdUInt8 *scnLines, OdUInt32 firstScanline, OdUInt32 numLines=1) const |
| |
| OdUInt32 | pixelWidth () const |
| |
| OdUInt32 | pixelHeight () const |
| |
| OdUInt32 | colorDepth () const |
| |
| OdUInt32 | numColors () const |
| |
| ODCOLORREF | color (OdUInt32 colorIndex) const |
| |
| OdUInt32 | paletteDataSize () const |
| |
| void | paletteData (OdUInt8 *bytes) const |
| |
| OdGiRasterImage::PixelFormatInfo | pixelFormat () const |
| |
| OdUInt32 | scanLinesAlignment () const |
| |
| OdGiRasterImage::Units | defaultResolution (double &xPelsPerUnit, double &yPelsPerUnit) const |
| |
| OdUInt32 | supportedParams () const |
| |
| OdGiRasterImage::ImageSource | imageSource () const |
| |
| OdGiRasterImage::TransparencyMode | transparencyMode () const |
| |
| void | setTransparencyMode (OdGiRasterImage::TransparencyMode mode) |
| |
| OdRxObjectPtr | clone () const |
| |
| void | copyFrom (const OdRxObject *pSource) |
| |
| | ODRX_DECLARE_MEMBERS (OdGiRasterImageParam) |
| |
| virtual void | setImageSource (ImageSource source) |
| |
| virtual void | setSourceFileName (const OdString &fileName) |
| |
| | ODRX_DECLARE_MEMBERS (OdGiRasterImage) |
| |
| virtual int | transparentColor () const |
| |
| virtual const OdString & | sourceFileName () const |
| |
| OdSmartPtr< OdGiRasterImage > | changeImageSource (ImageSource source, const OdChar *pFileName=NULL) |
| |
| OdSmartPtr< OdGiRasterImage > | changeSourceFileName (const OdString &fileName) |
| |
| OdSmartPtr< OdGiRasterImage > | changeTransparencyMode (TransparencyMode mode) |
| |
| 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 OdSmartPtr< OdGiRasterImage > | crop (OdUInt32 x, OdUInt32 y, OdUInt32 width, OdUInt32 height) const |
| |
| virtual void * | imp () const |
| |
| | ODRX_HEAP_OPERATORS () |
| |
| | OdRxObject () |
| |
| virtual | ~OdRxObject () |
| |
| virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
| |
| virtual OdRxObject * | x (const OdRxClass *pClass) const |
| |
| virtual OdRxClass * | isA () const |
| |
| virtual void | addRef ()=0 |
| |
| virtual void | release ()=0 |
| |
| virtual long | numRefs () const |
| |
| bool | isKindOf (const OdRxClass *pClass) const |
| |
| virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
| |
| virtual bool | isEqualTo (const OdRxObject *pOther) const |
| |
|
| enum | ParamType { kImageSource = (1 << 0)
, kTransparencyMode = (1 << 1)
, kSourceFileName = (1 << 2)
} |
| |
| enum | Units {
kNone = 0
, kMillimeter
, kCentimeter
, kMeter
,
kKilometer
, kInch
, kFoot
, kYard
,
kMile
, kMicroinches
, kMils
, kAngstroms
,
kNanometers
, kMicrons
, kDecimeters
, kDekameters
,
kHectometers
, kGigameters
, kAstronomical
, kLightYears
,
kParsecs
} |
| |
| enum | ImageSource {
kUndefinedSource = -1
, kFromDwg = 0
, kFromOleObject = 1
, kFromRender = 2
,
kFromUnderlay = 10
, kFromImageBGRA32 = 11
, kFromPdfUnderlay = kFromOleObject
, kFromFile = kFromDwg
} |
| |
| enum | TransparencyMode { kTransparencyDef = -1
, kTransparencyOff = 0
, kTransparency1Bit = 1
, kTransparency8Bit = 2
} |
| |
| typedef struct OdGiRasterImage::tagPixelFormatInfo | PixelFormatInfo |
| |
Extends the original OdGiRasterImage with alpha channel data.
Definition at line 1238 of file GiRasterWrappers.h.
◆ OdGiRasterImageAlphaChannelAdder()
| OdGiRasterImageAlphaChannelAdder::OdGiRasterImageAlphaChannelAdder |
( |
| ) |
|
◆ ~OdGiRasterImageAlphaChannelAdder()
| virtual OdGiRasterImageAlphaChannelAdder::~OdGiRasterImageAlphaChannelAdder |
( |
| ) |
|
|
virtual |
◆ clone()
Creates a clone of this object, and returns a pointer to the clone.
Reimplemented from OdRxObject.
◆ color()
Returns the color for the specified index from the palette of this RasterImage object.
- Parameters
-
| colorIndex | [in] Color index. |
Implements OdGiRasterImage.
◆ colorDepth()
| OdUInt32 OdGiRasterImageAlphaChannelAdder::colorDepth |
( |
| ) |
const |
|
virtual |
Returns the number of bits per pixel used for colors by this RasterImage object.
Implements OdGiRasterImage.
◆ copyFrom()
| void OdGiRasterImageAlphaChannelAdder::copyFrom |
( |
const OdRxObject * |
pSource | ) |
|
|
virtual |
Copies data of a source object to the current object.
- Parameters
-
| pSource | [in] Input source object. |
Reimplemented from OdRxObject.
◆ createObject()
Creates an OdGiRasterImageAlphaChannelAdder object with the specified parameters.
- Parameters
-
| pOrig | [in] Input original image. |
| cutColor | [in] Alpha pixel color. |
| threshold | [in] Alpha pixel color threshold. |
- Returns
- Returns a SmartPointer to the newly created object.
◆ defaultResolution()
| OdGiRasterImage::Units OdGiRasterImageAlphaChannelAdder::defaultResolution |
( |
double & |
xPelsPerUnit, |
|
|
double & |
yPelsPerUnit |
|
) |
| const |
|
virtual |
Returns the default image resolution in pixels per unit of this RasterImage object.
- Parameters
-
| xPelsPerUnit | [out] Receives the pixels per unit value (x direction). |
| yPelsPerUnit | [out] Receives the pixels per unit value (y direction). |
Reimplemented from OdGiRasterImage.
◆ getAlphaValue()
◆ imageSource()
◆ numColors()
| OdUInt32 OdGiRasterImageAlphaChannelAdder::numColors |
( |
| ) |
const |
|
virtual |
Returns the number of colors in the palette of this RasterImage object.
Implements OdGiRasterImage.
◆ paletteData()
| void OdGiRasterImageAlphaChannelAdder::paletteData |
( |
OdUInt8 * |
bytes | ) |
const |
|
virtual |
Returns the palette in BMP format of this RasterImage object.
- Parameters
-
| bytes | [out] Receives the palette data. |
Implements OdGiRasterImage.
◆ paletteDataSize()
| OdUInt32 OdGiRasterImageAlphaChannelAdder::paletteDataSize |
( |
| ) |
const |
|
virtual |
Returns the size (in bytes) of the palette data of this RasterImage object.
Implements OdGiRasterImage.
◆ pixelFormat()
Returns the pixel format for this RasterImage object.
Implements OdGiRasterImage.
◆ pixelHeight()
| OdUInt32 OdGiRasterImageAlphaChannelAdder::pixelHeight |
( |
| ) |
const |
|
virtual |
Returns the image height in pixels of this RasterImage object.
Implements OdGiRasterImage.
◆ pixelWidth()
| OdUInt32 OdGiRasterImageAlphaChannelAdder::pixelWidth |
( |
| ) |
const |
|
virtual |
Returns the image width in pixels of this RasterImage object.
Implements OdGiRasterImage.
◆ scanLines() [1/2]
| const OdUInt8* OdGiRasterImageAlphaChannelAdder::scanLines |
( |
| ) |
const |
|
virtual |
◆ scanLines() [2/2]
Returns the specified set of scanlines in BMP format for this RasterImage object, or the pixel data in BMP format for this RasterImage object.
- Parameters
-
| scnLines | [out] Receives the scanline data. |
| firstScanline | [in] Index of first scanline to retrieve. |
| numLines | [in] Number of scanlines to retrieve. |
Implements OdGiRasterImage.
◆ scanLinesAlignment()
| OdUInt32 OdGiRasterImageAlphaChannelAdder::scanLinesAlignment |
( |
| ) |
const |
|
virtual |
◆ scanLineSize()
| OdUInt32 OdGiRasterImageAlphaChannelAdder::scanLineSize |
( |
| ) |
const |
|
virtual |
Returns the scanline size of this RasterImage object.
Reimplemented from OdGiRasterImage.
◆ setTransparencyMode()
Sets an image transparency mode.
- Parameters
-
| mode | [in] New transparency mode value. |
Reimplemented from OdGiRasterImageParam.
◆ supportedParams()
| OdUInt32 OdGiRasterImageAlphaChannelAdder::supportedParams |
( |
| ) |
const |
|
virtual |
Returns the ParamType bitflags with which parameters are supported by this interface.
Implements OdGiRasterImageParam.
◆ transparencyMode()
Returns the transparency mode for 32bpp formats.
Reimplemented from OdGiRasterImage.
◆ m_clPixelAlpha
| ODCOLORREF OdGiRasterImageAlphaChannelAdder::m_clPixelAlpha |
|
protected |
◆ m_nPixelAlphaThreshold
| OdUInt8 OdGiRasterImageAlphaChannelAdder::m_nPixelAlphaThreshold |
|
protected |
◆ m_pOrigImage
The documentation for this class was generated from the following file: