CFx SDK Documentation 2024 SP0
|
#include <GiRasterWrappers.h>
Static Public Member Functions | |
static OdGiRasterImagePtr | createObject (const OdGiRasterImage *pOrig, ODCOLORREF foregroundColor, ODCOLORREF backgroundColor, bool transparent) |
Static Public Member Functions inherited from OdGiRasterImage | |
static double | millimetersInUnit (Units units) |
static OdUInt32 | calcBMPScanLineSize (OdUInt32 pixelWidth, int colorDepth) |
static OdUInt32 | calcColorMask (OdUInt8 numColorBits, OdUInt8 colorOffset=0) |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Additional Inherited Members | |
Public Types inherited from OdGiRasterImageParam | |
enum | ParamType { kImageSource = (1 << 0) , kTransparencyMode = (1 << 1) , kSourceFileName = (1 << 2) } |
Public Types inherited from OdGiRasterImage | |
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 |
This raster image transformer class transforms OdGiRasterImage objects to Bitonal images.
Corresponding C++ library: TD_Gi
Definition at line 1076 of file GiRasterWrappers.h.
OdGiBitonalRasterTransformer::OdGiBitonalRasterTransformer | ( | ) |
Default constructor for the OdGiBitonalRasterTransformer class. Sets transparency color to -1 (absent).
|
virtual |
Destructor for the OdGiBitonalRasterTransformer class.
|
virtual |
Creates a clone of this object, and returns a pointer to the clone.
Reimplemented from OdGiRasterImageWrapper.
|
virtual |
Retrieves the number of colors in the palette of this RasterImage object.
colorIndex | [in] Color index. |
Reimplemented from OdGiRasterImageWrapper.
|
virtual |
Copies data of a source object to the current object.
pSource | [in] Input source object. |
Reimplemented from OdGiRasterImageWrapper.
|
static |
Creates a bitonal raster transformer.
pOrig | [in] Original raster image pointer. |
foregroundColor | [in] Foreground color. |
backgroundColor | [in] Background color. |
transparent | [in] Image is transparent if and only if true. |
|
virtual |
Retrieves the number of colors in the palette of this RasterImage object.
Reimplemented from OdGiRasterImageWrapper.
Retrieves the palette in BMP format of this RasterImage object.
bytes | [out] Output palette data. |
Reimplemented from OdGiRasterImageWrapper.
|
virtual |
Retrieves the size (in bytes) of the palette data of this RasterImage object.
Reimplemented from OdGiRasterImageWrapper.
|
virtual |
Retrieves the pixel format for this RasterImage object.
Reimplemented from OdGiRasterImageWrapper.
void OdGiBitonalRasterTransformer::setOriginal | ( | const OdGiRasterImage * | pOrig, |
ODCOLORREF | foregroundColor, | ||
ODCOLORREF | backgroundColor, | ||
bool | transparent | ||
) |
Sets bitonal raster transformer parameters.
pOrig | [in] Original raster image pointer. |
foregroundColor | [in] Foreground color. |
backgroundColor | [in] Background color. |
transparent | [in] Image is transparent if and only if true. |
|
virtual |
Retrieves the index of transparent color in the image.
Reimplemented from OdGiRasterImageWrapper.