CFx SDK Documentation
2022 SP0
|
#include <GiRasterWrappers.h>
Static Public Member Functions | |
static OdGiRasterImagePtr | createObject (OdUInt32 pixelWidth, OdUInt32 pixelHeight, Units units=kNone, double xPelsPerUnit=0.0, double yPelsPerUnit=0.0) |
static OdGiRasterImagePtr | createObject (OdUInt32 pixelWidth, OdUInt32 pixelHeight, OdUInt32 colorDepth, Units units=kNone, double xPelsPerUnit=0.0, double yPelsPerUnit=0.0) |
static OdGiRasterImagePtr | createObject (const OdGiRasterImage *pSourceImage) |
Static Public Member Functions inherited from OdGiRasterImage | |
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 class is a dummy implementation of the OdGiRasterImage interface.
Corresponding C++ library: TD_Gi <group OdGi_Classes>
Definition at line 44 of file GiRasterWrappers.h.
OdGiRasterImageDesc::OdGiRasterImageDesc | ( | ) |
|
virtual |
|
virtual |
Creates a clone of this object, and returns a pointer to the clone.
Reimplemented from OdRxObject.
|
virtual |
Returns the color for the specified index from the palette of this RasterImage object.
colorIndex | [in] Color index. |
Implements OdGiRasterImage.
|
virtual |
Returns the number of bits per pixel used for colors by this RasterImage object.
Implements OdGiRasterImage.
|
virtual |
Copies data of a source object to the current object.
pSource | [in] Input source object. |
Reimplemented from OdRxObject.
|
static |
Creates an OdGiRasterImageDesc object with the specified parameters.
pSourceImage | [in] Source raster image to copy parameters from. |
|
static |
Creates an OdGiRasterImageDesc object with the specified parameters.
pixelWidth | [in] Image width in pixels. |
pixelHeight | [in] Image height in pixels. |
colorDepth | [in] Number of bits per pixel used for colors. |
units | [in] Units / pixel. |
xPelsPerUnit | [in] Pixels per unit value (x direction). |
yPelsPerUnit | [in] Pixels per unit value (y direction). |
|
static |
Creates an OdGiRasterImageDesc object with the specified parameters.
pixelWidth | [in] Image width in pixels. |
pixelHeight | [in] Image height in pixels. |
units | [in] Units / pixel. |
xPelsPerUnit | [in] Pixels per unit value (x direction). |
yPelsPerUnit | [in] Pixels per unit value (y direction). |
|
virtual |
Returns the default image resolution in pixels per unit of this RasterImage object.
xPelsPerUnit | [out] Receives the pixels per unit value (x direction). |
yPelsPerUnit | [out] Receives the pixels per unit value (y direction). |
Reimplemented from OdGiRasterImage.
|
virtual |
Returns the image source.
Reimplemented from OdGiRasterImage.
|
virtual |
Returns the number of colors in the palette of this RasterImage object.
Implements OdGiRasterImage.
Returns the palette in BMP format of this RasterImage object.
bytes | [out] Receives the palette data. |
Implements OdGiRasterImage.
|
virtual |
Returns the size (in bytes) of the palette data of this RasterImage object.
Implements OdGiRasterImage.
OdGiRasterImage::PixelFormatInfo& OdGiRasterImageDesc::pixelFormat | ( | ) |
Returns the pixel format for this RasterImage object.
|
virtual |
Returns the pixel format for this RasterImage object.
Implements OdGiRasterImage.
|
virtual |
Returns the image height in pixels of this RasterImage object.
Implements OdGiRasterImage.
|
virtual |
Returns the image width in pixels of this RasterImage object.
Implements OdGiRasterImage.
|
virtual |
Returns NULL for an OdGiRasterImageDesc object.
Implements OdGiRasterImage.
|
virtual |
Returns the specified set of scanlines in BMP format for this RasterImage object, or the pixel data in BMP format for this RasterImage object.
scnLines | [out] Receives the scanline data. |
firstScanline | [in] Index of first scanline to retrieve. |
numLines | [in] Number of scanlines to retrieve. |
Implements OdGiRasterImage.
|
virtual |
Returns the scanline alignment, in bytes, for this RasterImage object. Example: scanLinesAlignment() returns 4 for Windows BMP.
Implements OdGiRasterImage.
|
virtual |
Returns the scanline size of this RasterImage object.
Reimplemented from OdGiRasterImage.
Sets the number of bits per pixel used for colors by this RasterImageDesc object.
colorDepth | [in] Color depth. |
void OdGiRasterImageDesc::setDefaultResolution | ( | Units | units, |
double | xPelsPerUnit, | ||
double | yPelsPerUnit | ||
) |
Sets the default raster image resolution for this RasterImage object.
units | [in] Units / pixel. |
xPelsPerUnit | [in] Pixels per unit value (x direction). |
yPelsPerUnit | [in] Pixels per unit value (y direction). |
void OdGiRasterImageDesc::setFrom | ( | const OdGiRasterImage * | pSourceImage | ) |
Copies parameters from an original OdGiRasterImage object.
pSourceImage | [in] Pointer to the original image object. |
|
virtual |
Sets an image source.
source | [in] New image source value. |
Reimplemented from OdGiRasterImageParam.
Sets the palette in BMP format for this RasterImageDesc object.
paletteData | [in] Palette data. |
paletteSize | [in] Palette size in bytes. |
Sets the image height in pixels of this RasterImageDesc object.
pixelHeight | [in] Pixel height. |
Sets the image width in pixels of this RasterImageDesc object.
pixelWidth | [in] Pixel width. |
Sets the scanline alignment, in bytes, for this RasterImage object.
alignment | [in] Scanline alignment. Example: Alignment is 4 for Windows BMP. |
Sets an image source file name.
fileName | [in] New value for image source file name. |
Reimplemented from OdGiRasterImageParam.
|
virtual |
Sets an image transparency mode.
mode | [in] New transparency mode value. |
Reimplemented from OdGiRasterImageParam.
|
virtual |
Returns the image source file name.
Reimplemented from OdGiRasterImage.
|
virtual |
Returns the ParamType bitflags with which parameters are supported by this interface.
Implements OdGiRasterImageParam.
|
virtual |
Returns the transparency mode for 32bpp formats.
Reimplemented from OdGiRasterImage.