#include <DgnPlatform/DgnPlatform.h>
Go to the source code of this file.
Functions | |
IMAGELIB_EXPORT int | mdlImage_RGBToMapWithGamma (byte **imageMapPP, byte *rgbBufferP, Point2d *sizeP, byte *redMapP, byte *grnMapP, byte *bluMapP, int paletteSize, double gamma) |
Converts an RGB image to a mapped image, applying gamma correction to each pixel as it is converted. More... | |
IMAGELIB_EXPORT int | mdlImage_RGBToMap (byte **imageMapPP, byte *rgbBufferP, Point2d *sizeP, byte *redMapP, byte *grnMapP, byte *bluMapP, int paletteSize) |
Converts an RGB image to a mapped image. More... | |
IMAGELIB_EXPORT void | mdlImage_ditherCleanup (void) |
Frees the internal buffers allocated during the dithering process. More... | |
IMAGELIB_EXPORT int | mdlImage_ditherInitialize (int nColors, byte *redMapP, byte *grnMapP, byte *bluMapP, int width) |
Initialization for dithering. More... | |
IMAGELIB_EXPORT int | mdlImage_ditherRow (byte *outputLineP, byte *redP, byte *grnP, byte *bluP, int width) |
Creates a dithered scanline from a sequence of red, green and blue pixels. More... | |
IMAGELIB_EXPORT int | mdlImage_getOptimizedPalette (byte *redMapP, byte *grnMapP, byte *bluMapP, int *paletteSizeP, int maxColors, byte *imageBufferP, Point2d *sizeP) |
Calculates an optimized color palette for an RGB image. More... | |
IMAGELIB_EXPORT int | mdlImage_mapToRGB (byte **rgbBufferPP, byte *mapP, Point2d *sizeP, byte *redMapP, byte *grnMapP, byte *bluMapP) |
Converts a mapped image to an RGB image. More... | |
IMAGELIB_EXPORT int | mdlImage_mapToRGBBuffer (byte *rgbBufferP, byte *mapP, Point2d *sizeP, byte *redMapP, byte *grnMapP, byte *bluMapP) |
Converts a mapped image to an RGB image. More... | |
IMAGELIB_EXPORT int | mdlImage_resize (byte **outputImagePP, Point2d *outputSizeP, byte *inputImageP, Point2d *inputSizeP) |
Compresses or expands the RGB buffer specified by inputImageP and inputSizeP to the size specified by outputSizeP. More... | |
IMAGELIB_EXPORT int | mdlImage_readFileInfo (Point2d *imageSizeP, DgnPlatform::ImageColorMode *colorModeP, int *orientationP, WCharCP fileName, DgnPlatform::ImageFileFormat fileType) |
Returns information about the image file specified by fileName and fileType. More... | |
IMAGELIB_EXPORT int | mdlImage_readFileToRGB (byte **imageBufferPP, Point2d *imageSizeP, WCharCP name, DgnPlatform::ImageFileFormat fileType, Point2d *requestedSizeP) |
Reads the image file specified by filename and fileType and returns an RGB image. More... | |
IMAGELIB_EXPORT int | mdlImage_readFileToMap (byte **imageMapPP, Point2d *imageSizeP, byte *redMapP, byte *grnMapP, byte *bluMapP, int *paletteSizeP, WCharCP fileName, DgnPlatform::ImageFileFormat fileType) |
Reads the mapped image file specified by fileName and fileType. More... | |
IMAGELIB_EXPORT int | mdlImage_extCreateFileFromMap (WCharCP name, DgnPlatform::ImageFileFormat type, DgnPlatform::ImageColorMode colorMode, Point2d *sizeP, byte *imageMapP, byte *redPaletteP, byte *grnPaletteP, byte *bluPaletteP, int paletteSize, DgnPlatform::CompressionType compressType, DgnPlatform::CompressionRatio compressRatio, byte *transparencyP) |
Creates the image file specified by fileName, fileType and colorMode from a mapped image, allowing compression and transparency to be set. More... | |
IMAGELIB_EXPORT int | mdlImage_createFileFromMap (WCharCP name, DgnPlatform::ImageFileFormat type, DgnPlatform::ImageColorMode colorMode, Point2d *sizeP, byte *imageMapP, byte *redPaletteP, byte *grnPaletteP, byte *bluPaletteP, int paletteSize) |
Creates the image file specified by fileName, fileType and colorMode from a mapped image. More... | |
IMAGELIB_EXPORT int | mdlImage_extCreateFileFromRGB (WCharCP name, DgnPlatform::ImageFileFormat type, DgnPlatform::ImageColorMode colorMode, Point2d *sizeP, byte *imageBufferP, DgnPlatform::CompressionType compressType, DgnPlatform::CompressionRatio compressRatio, byte *transparencyP) |
Creates the image file specified by fileName, fileType and colorMode from an RGB image, allowing compression type and transparency to be set. More... | |
IMAGELIB_EXPORT int | mdlImage_extCreateMonoFileFromRGB (WCharCP name, DgnPlatform::ImageFileFormat type, Point2d *sizeP, byte *imageBufferP, DgnPlatform::CompressionType compressType, DgnPlatform::CompressionRatio compressRatio, byte *transparencyP, RgbColorDef *backgroundColorP) |
Creates the monochrome image file specified by fileName, fileType from an RGB image, allowing compression type. More... | |
IMAGELIB_EXPORT int | mdlImage_createFileFromRGB (WCharCP name, DgnPlatform::ImageFileFormat type, DgnPlatform::ImageColorMode colorMode, Point2d *sizeP, byte *imageBufferP) |
Creates the image file specified by fileName, fileType and colorMode from an RGB image. More... | |
IMAGELIB_EXPORT int | mdlImage_getExtension (WCharP ext, DgnPlatform::ImageFileFormat type) |
Returns the default three character file extension for the specified image format. More... | |
IMAGELIB_EXPORT int | mdlImage_getOSFileType (UInt32 *osFileTypeP, DgnPlatform::ImageFileFormat imageType) |
Returns the operating system file type for the specified image type. More... | |
IMAGELIB_EXPORT int | mdlImage_getExportSupport (DgnPlatform::ImageColorMode *defaultModeP, bool *rgbSupportP, bool *palette256SupportP, bool *palette16SupportP, bool *greyScaleSupportP, bool *monochromeSupportP, DgnPlatform::ImageFileFormat imageType) |
For a specified image format, returns the default color mode, and whether each of the various color modes is supported for export. More... | |
IMAGELIB_EXPORT StatusInt | mdlImage_getImportFormatString (WCharP formatName, UInt32 formatNameLen, UInt32 formatId) |
Get the corresponding string for a given ImageFileFormat. More... | |
IMAGELIB_EXPORT StatusInt | mdlImage_getExportFormatString (WCharP formatName, UInt32 formatNameLen, UInt32 formatId) |
Get the corresponding string for a given ImageFileFormat. More... | |
IMAGELIB_EXPORT int | mdlImage_getExportFormat (WCharP formatName, DgnPlatform::ImageFileFormat *importTypeP, int index) |
Determines if the specified image file format is supported for export. More... | |
IMAGELIB_EXPORT int | mdlImage_getImportFormat (WCharP formatName, DgnPlatform::ImageFileFormat *importTypeP, int index) |
Determines if the specified image file format is supported for import. More... | |
IMAGELIB_EXPORT void | mdlImage_getBalancedPalette (byte *redMapP, byte *grnMapP, byte *bluMapP, int *numColorsP) |
Calculates a balanced color palette. More... | |
IMAGELIB_EXPORT DgnPlatform::ImageFileFormat | mdlImage_typeFromExtension (WCharCP fileName) |
Returns the file type of the specified image file. More... | |
IMAGELIB_EXPORT StatusInt | mdlImage_getImageBgColor (byte *pixelP, WCharCP name) |
Retrieves the background color information from the specified image file. More... | |
IMAGELIB_EXPORT void | mdlImage_applyGamma (byte *rgbOutP, byte *rgbInP, Point2d *sizeP, double gamma) |
Applies gamma correction to the input RGB buffer and places the result in the output RGB buffer. More... | |
IMAGELIB_EXPORT void | mdlImage_applyGammaToPalette (byte *redMapP, byte *greenMapP, byte *blueMapP, int paletteSize, double gamma) |
Applies gamma correction to an existing palette. More... | |
IMAGELIB_EXPORT void | mdlImage_negate (byte *rgbOutP, byte *rgbInP, Point2d *sizeP) |
Returns an RGB image that is the negated version of the input RGB image. More... | |
IMAGELIB_EXPORT void | mdlImage_negatePalette (byte *redMapP, byte *greenMapP, byte *blueMapP, int paletteSize) |
Returns a negated version of the supplied color palette. More... | |
IMAGELIB_EXPORT int | mdlImage_readFileToBitMap (byte **imageBitMap, Point2d *imageSize, WCharCP fileName, DgnPlatform::ImageFileFormat fileType, bool runLengthEncode) |
Reads a bitmapped image file into an image buffer and optionally run length encodes the bitmap. More... | |
IMAGELIB_EXPORT int | mdlImage_createFileFromBitMap (WCharCP nameP, DgnPlatform::ImageFileFormat type, Point2d *sizeP, byte *bitMapP, bool runLengthEncode, RgbColorDef *foregroundColorP, RgbColorDef *backgroundColorP) |
creates an image file from a memory bitmap. More... | |
IMAGELIB_EXPORT int | mdlImage_createFileFromBuffer (WCharCP saveAsFileNameP, DgnPlatform::ImageFileFormat fileType, DgnPlatform::ImageColorMode colorMode, Point2d *sizeP, byte *imageDataP, int imageFormat, void *param1P, void *param2P, void *param3P, int paletteSize, DgnPlatform::CompressionType compressType, DgnPlatform::CompressionRatio compressRatio) |
Creates a file from an image buffer by using the imageFormat to determine how to best write the file. More... | |
IMAGELIB_EXPORT int | mdlImage_extractRGBSubImage (byte *outP, Point2d *outSizeP, byte *inP, Point2d *inSizeP, BSIRect *rectP) |
Extracts an RGB subimage from a larger image and stretches or decimates it to fit a user-defined output image size. More... | |
IMAGELIB_EXPORT int | mdlImage_extractRGBASubImage (byte *outP, Point2d *outSizeP, byte *inP, Point2d *inSizeP, BSIRect *rectP) |
Extracts an RGBA subimage from a larger image and stretches or decimates it to fit a user-defined output image size. More... | |
IMAGELIB_EXPORT int | mdlImage_extractPackByteSubImage (byte **outRowPP, Point2d *outSizeP, byte **inRowPP, Point2d *inSizeP, BSIRect *rectP, byte *mapP) |
Extracts a packbyte subimage from a larger image and stretches or decimates it to fit a user-defined output image size. More... | |
IMAGELIB_EXPORT int | mdlImage_extractByteMapSubImage (byte *outMapP, Point2d *outSizeP, byte *inMapP, Point2d *inSizeP, BSIRect *rectP, byte *mapP) |
Extracts a byte mapped subimage from a larger image and stretches or decimates it to fit a user-defined output image size. More... | |
IMAGELIB_EXPORT int | mdlImage_extractBitMapSubImage (byte *outMapP, Point2d *outSizeP, byte *inBitMapP, Point2d *inSizeP, BSIRect *rectP) |
Extracts a bitmapped subimage from a larger image and stretches or decimates it to fit a user-defined output image size. More... | |
IMAGELIB_EXPORT int | mdlImage_subByteMapFromBitMap (byte *outMapP, Point2d *outSizeP, byte *inBitMapP, Point2d *inSizeP, BSIRect *rectP, int foreground, int background, bool rle) |
Converts a bitmapped image to a byte mapped image and stretches or decimates it to fit a user-defined output image size. More... | |
IMAGELIB_EXPORT int | mdlImage_subByteMapFromRLEBitMap (byte *outMapP, Point2d *outSizeP, UShort **inBitMapPP, Point2d *inSizeP, BSIRect *rectP, int foreground, int background) |
Converts a RLE bitmapped image to a byte mapped image and stretches or decimates it to fit a user-defined output image size. More... | |
IMAGELIB_EXPORT int | mdlImage_subByteMapFromPackByte (byte *outMapP, Point2d *outSizeP, byte **inRowPP, Point2d *inSizeP, BSIRect *rectP, byte *mapP) |
Converts a packbyte image to a byte mapped image and stretches or decimates it to fit a user-defined output image size. More... | |
IMAGELIB_EXPORT void | mdlImage_freeImage (void *imageP, Point2d *sizeP, int imageFormat) |
Frees the memory buffer identified by imageP. More... | |
IMAGELIB_EXPORT int | mdlImage_extractSubImage (byte *outP, Point2d *outSizeP, byte *inP, Point2d *inSizeP, BSIRect *rectP, int imageFormat) |
Extracts a subimage from a larger image and stretches or decimates it to fit a user-defined output image size. More... | |
IMAGELIB_EXPORT int | mdlImage_runLengthEncodeBitMap (UShort ***rlePPP, byte *bitmapP, Point2d *sizeP) |
Converts a bitmap in format IMAGEFORMAT_BitMap to its run-length-encoded format IMAGEFORMAT_RLEBitMap. More... | |
IMAGELIB_EXPORT void | mdlImage_tintPalette (byte *redP, byte *grnP, byte *bluP, int paletteSize, RgbColorDef *tintRGBP) |
Tints each entry of an image palette by adjusting values as defined below. More... | |
IMAGELIB_EXPORT void | mdlImage_tintImage (byte *imageP, Point2d *imageSizeP, RgbColorDef *tintRGBP) |
Tints an RGB image in format IMAGEFORMAT_RGBSeparate by adjusting values as defined below. More... | |
IMAGELIB_EXPORT int | mdlImage_setMapPolygon (byte *dataP, bool *dataModifiedP, Point2d *sizeP, int imageFormat, DPoint2d *pointP, int nPoints, bool outside, int value) |
Masks a polygonal area within an image. More... | |
IMAGELIB_EXPORT int | mdlImage_setRGBPolygon (byte *dataP, bool *dataModifiedP, Point2d *sizeP, DPoint2d *pointP, int nPoints, bool outside, RgbColorDef *colorP) |
Masks a polygonal area within an image. More... | |
IMAGELIB_EXPORT int | mdlImage_rotate (byte **outBufferPP, Point2d *outSizeP, byte *inpBufferP, Point2d *imageSizeP, int imageFormat, int rotation) |
Rotates the image about the origin in a counter clockwise direction by a specified number of degrees. More... | |
IMAGELIB_EXPORT int | mdlImage_mirror (byte *inpBufferP, Point2d *imageSizeP, int imageFormat, bool vertical) |
Mirrors an image by reversing the pixels, either horizontally or vertically. More... | |
IMAGELIB_EXPORT int | mdlImage_warp (byte **outPP, Point2d *outSizeP, byte *inP, Point2d *inSizeP, int imageFormat, TransformP inverseTransformP, byte *transparentP) |
Warps an image by using an inverse transform from each pixel of the output image to find the corresponding pixel in the source image. More... | |
IMAGELIB_EXPORT int | mdlImage_memorySize (Point2d *sizeP, int imageFormat) |
Returns the amount of memory initially required to hold the image in the specified image format. More... | |
IMAGELIB_EXPORT DgnPlatform::ImageFileFormat | mdlImage_typeFromFile (WCharCP fileNameP) |
Attempts to determine the type of file from header information within the file itself. More... | |
IMAGELIB_EXPORT void | mdlImage_setMapIfRGBMatch (byte *mapP, int value, byte *rgbP, Point2d *sizeP, RgbColorDef *matchP, bool packBytes) |
Modifies a corresponding byte mapped image every time pixels in a corresponding RGB image match a specified value. More... | |
IMAGELIB_EXPORT void | mdlImage_getMapUsage (byte mapUsed[256], byte *mapP, Point2d *sizeP, bool packBytes) |
Determines which palette entries are used or available in an image. More... | |
IMAGELIB_EXPORT void | mdlImage_paletteToGreyScale (byte *greyPaletteP, int *minGreyP, int *maxGreyP, byte *redMapP, byte *grnMapP, byte *bluMapP, int paletteSize) |
Computes a greyscale palette from a color palette using the formula: More... | |
IMAGELIB_EXPORT int | mdlImage_byteMapToGreyScale (byte *greyP, int *minGreyP, int *maxGreyP, byte *byteMapP, byte *redMapP, byte *grnMapP, byte *bluMapP, int paletteSize, Point2d *sizeP) |
Converts an uncompressed byte-mapped color image with format IMAGFORMAT_ByteMap to a greyscale image based on the formula: More... | |
IMAGELIB_EXPORT int | mdlImage_packByteToGreyScale (byte *greyP, int *minGreyP, int *maxGreyP, byte *packByteP, byte *redMapP, byte *grnMapP, byte *bluMapP, int paletteSize, Point2d *sizeP) |
Converts a compressed byte-mapped color image with format IMAGEFORMAT_PackByte to a greyscale image based on the formula: More... | |
IMAGELIB_EXPORT int | mdlImage_rgbToGreyScale (byte *greyP, int *minGreyP, int *maxGreyP, byte *rgbP, Point2d *sizeP) |
Converts an RGB image to a byte-per-pixel greyscale image based on the formula: More... | |
IMAGELIB_EXPORT int | mdlImage_greyScaleToBitMap (byte *bitMapP, byte *greyP, Point2d *sizeP, int minGrey, int maxGrey, int ditherMode) |
Converts an uncompressed byte-per-pixel greyscale image to an uncompressed bitmap by dithering the greyscale image. More... | |
IMAGELIB_EXPORT int | mdlImage_rgbToBitMap (byte *bitMapP, byte *rgbP, Point2d *sizeP, int ditherMode) |
Converts an RGB image to an uncompressed bitmap by dithering the color image. More... | |
IMAGELIB_EXPORT int | mdlImage_byteMapToBitMap (byte *bitMapP, byte *byteMapP, byte *redMapP, byte *grnMapP, byte *bluMapP, int paletteSize, Point2d *sizeP, int ditherMode) |
Converts an uncompressed byte-mapped color image to an uncompressed bitmap by dithering the color image. More... | |
IMAGELIB_EXPORT int | mdlImage_packByteToBitMap (byte *bitMapP, byte *packByteP, byte *redMapP, byte *grnMapP, byte *bluMapP, int paletteSize, Point2d *sizeP, int ditherMode) |
Converts a compressed byte-mapped color image to an uncompressed bitmap by dithering the color image. More... | |
IMAGELIB_EXPORT void | mdlImage_runLengthEncodeBitMapRow (UShort *outP, int *compressedSizeP, byte *inP, int nPixels) |
Encodes a bitmap row in format IMAGEFORMAT_BitMap into any array of UShort integers. More... | |
IMAGELIB_EXPORT void | mdlImage_runLengthDecodeBitMapRow (byte *outP, UShort *inP, int nPixels) |
Decodes a bitmap row from an array of UShort integers into a row in format IMAGEFORMAT_BitMap. More... | |
IMAGELIB_EXPORT int | mdlImage_convertToUpperLeftHorizontal (byte **imagePP, Point2d *sizeP, int ingrOrientation, int imageFormat) |
Converts an image to upper-left-horizontal orientation, so the first image pixel is the upper-left corner, and subsequent pixels proceed from left to right, then from top to bottom. More... | |
IMAGELIB_EXPORT int | mdlImage_extReadFileToMap (byte **imageMapPP, Point2d *imageSizeP, byte *redMapP, byte *grnMapP, byte *bluMapP, int *paletteSizeP, WCharCP fileNameP, DgnPlatform::ImageFileFormat fileType, bool packBytes) |
Reads a file which contains a byte-mapped image with no more than 265 color palette entries. More... | |
IMAGELIB_EXPORT int | mdlImage_stretchRLEToBitMap (byte **imagePP, Point2d *sizeP) |
Replaces a run-length encoded (RLE) bitmap representation of an image with its corresponding bitmap representation. More... | |
IMAGELIB_EXPORT int | mdlImage_extMapToRGB (byte **rgbBufferPP, byte *mapP, Point2d *sizeP, byte *redMapP, byte *grnMapP, byte *bluMapP, bool packBytes) |
Converts a byte-mapped image from IMAGEFORMAT_ByteMap or IMAGEFORMAT_PackByte format to an RGB image in IMAGEFORMAT_RGBSeparate format. More... | |
IMAGELIB_EXPORT int | mdlImage_RGBToPackByte (byte **imageMapPP, byte *rgbBufferP, Point2d *sizeP, byte *redMapP, byte *grnMapP, byte *bluMapP, int paletteSize) |
Converts an RGB image to a packbyte compressed byte-mapped image. More... | |
IMAGELIB_EXPORT int | mdlImage_RGBToPackByteWithGamma (byte **imageMapPP, byte *rgbBufferP, Point2d *sizeP, byte *redMapP, byte *grnMapP, byte *bluMapP, int paletteSize, double gamma) |
Converts an RGB image to a packbyte compressed byte-mapped image and applies the supplied gamma value. More... | |
IMAGELIB_EXPORT int | mdlImage_extRGBToMap (byte **imageMapPP, byte *rgbBufferP, Point2d *sizeP, byte *redMapP, byte *grnMapP, byte *bluMapP, int paletteSize, bool packBytes) |
Converts from an RGB image with format IMAGEFORMAT_RGBSeparate to a byte-mapped image with format IMAGEFORMAT_ByteMap or IMAGEFORMAT_PackByte. More... | |
IMAGELIB_EXPORT void | mdlImage_packByteBuffer (byte *outP, int *encodeSizeP, byte *inP, int rawSize) |
Encodes a sequence of byte-mapped data into packbyte format. More... | |
IMAGELIB_EXPORT void | mdlImage_unpackByteBuffer (byte *outP, byte *inP, int numDecode) |
Unpacks a buffer in packbyte format to a sequence of bytes. More... | |
IMAGELIB_EXPORT void | mdlImage_doubleImage (byte *outMapP, byte *inMapP, Point2d *sizeP, int bytesPerPixel) |
Doubles the size of the source image to produce the output image. More... | |
IMAGELIB_EXPORT Public int | mdlImage_resizeBand (byte **outputImagePP, Point2d *outputSizeP, int outRowStart, int outRowStop, byte *inputImageP, Point2d *inputSizeP) |
Resizes a portion of the specified image to the given size. More... | |
IMAGELIB_EXPORT Public void | mdlImage_resizeCleanup (void) |
Clean up after resizing operations performed by calling ~mmdlImage_resizeBand. More... | |
IMAGELIB_EXPORT int | mdlImage_createRasterFile (WCharCP saveAsFileNameP, DgnPlatform::ImageFileFormat fileType, DgnPlatform::ImageColorMode colorMode, DgnPlatform::CompressionType compressType, DgnPlatform::CompressionRatio compressRatio, Point2d *imageSizeP, byte *imageDataP, int imageFormat, void *param1P, void *param2P, void *param3P, int paletteSize) |
Creates a raster file of the specified name and type using the given raster data. More... | |
IMAGELIB_EXPORT DgnPlatform::ImageFileFormat | mdlImage_fileType (DgnPlatform::ImageFileFormat fileType, WCharCP fileNameP) |
Determines the format of the specified image file. More... | |
IMAGELIB_EXPORT StatusInt | mdlImage_RGBToRGBSeparate (byte *rgbSeparateP, byte *rgbInterlacedP, Point2d *imageSizeP, DgnPlatform::ImageColorMode colorMode) |
Converts the specified image from RBG interlaced to RGB separated format. More... | |
IMAGELIB_EXPORT StatusInt | mdlImage_RGBSeparateToRGB (byte *rgbInterlacedP, byte *rgbSeparateP, Point2d *imageSizeP, DgnPlatform::ImageColorMode colorMode) |
Converts the specified image from RBG separate to RGB interlaced format. More... | |
IMAGELIB_EXPORT StatusInt | mdlImage_RGBSeparateToBGR (byte *bgrInterlacedP, byte *rgbSeparateP, Point2d *imageSizeP, DgnPlatform::ImageColorMode colorMode) |
Converts the specified image from RBG separate to BGR interlaced format. More... | |
IMAGELIB_EXPORT int | mdlImage_convertToGreyScale (void *dstDataP, byte *redMapP, byte *grnMapP, byte *bluMapP, int *paletteSizeP, void *srcDataP, Point2d *imageSizeP, int imageFormat) |
Converts the specified image to greyScale. More... | |
IMAGELIB_EXPORT StatusInt | mdlImage_createMonochromeFile (WCharCP fileNameP, DgnPlatform::ImageFileFormat fileType, Point2d *imageSizeP, byte *imageDataP, int imageFormat, byte *redMapP, byte *grnMapP, byte *bluMapP, int paletteSize, DgnPlatform::CompressionType compressType, DgnPlatform::CompressionRatio compressRatio) |
Creates a monochrome file from the specified image data. More... | |
IMAGELIB_EXPORT int | mdlImage_ditherInitializeWithGamma (int nColors, byte *redMapP, byte *grnMapP, byte *bluMapP, int width, double gammaValue) |
Initialization for dithering with gamma corrected pixels. More... | |
IMAGELIB_EXPORT int | mdlImage_ditherRowWithOffset (byte *outputLineP, byte *redP, byte *grnP, byte *bluP, int width, int channelOffset) |
Creates a dithered scanline from a sequence of red, green and blue pixels. More... | |
IMAGELIB_EXPORT StatusInt mdlImage_getExportFormatString | ( | WCharP | formatName, |
UInt32 | formatNameLen, | ||
UInt32 | formatId | ||
) |
Get the corresponding string for a given ImageFileFormat.
formatName | OUT Name of Export format |
formatNameLen | IN Length of formatName buffer |
formatId | IN ImageFileFormat to acquire the name. |
IMAGELIB_EXPORT StatusInt mdlImage_getImportFormatString | ( | WCharP | formatName, |
UInt32 | formatNameLen, | ||
UInt32 | formatId | ||
) |
Get the corresponding string for a given ImageFileFormat.
formatName | OUT Name of Import format |
formatNameLen | IN Length of formatName buffer |
formatId | IN ImageFileFormat to acquire the name. |