iDRS™ SDK 16
Loading...
Searching...
No Matches
CImage_interface.h
Go to the documentation of this file.
1
7#ifndef CIMAGE_INTERFACE_H
8
9#define CIMAGE_INTERFACE_H
10
12#include "CObjPtr_interface.h"
13#include "CIDRS_interface.h"
18
19#include "idrs_common.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
32CImage CImage_Create(CIDRS argIDRS, idrs_exception *pargException);
33
45CImage CImage_Create2(CIDRS argIDRS, IDRS_UINT32 const uiWidth, IDRS_UINT32 const uiHeight, enum ColorMode const colorMode, IDRS_UINT32 const uiResolution, idrs_exception *pargException);
46
53CImage CImage_Create3(const CImage argImage, idrs_exception *pargException);
54
66void CImage_CreateBitmap(CImage argCImage, IDRS_UINT const uiWidth, IDRS_UINT const uiHeight, enum ColorMode const colorMode, IDRS_UINT const uiResolution, idrs_exception *pargException);
67
83void CImage_CreateBitmap2(CImage argCImage, IDRS_UINT const uiWidth, IDRS_UINT const uiHeight, enum ColorMode const colorMode, IDRS_UINT const uiResolution, ILineReader lrLineReader, idrs_exception *pargException);
84
93CImage CImage_Clone(const CImage argCImage, idrs_exception *pargException);
94
103IDRS_UINT CImage_GetWidth(const CImage argCImage, idrs_exception *pargException);
104
112IDRS_UINT CImage_GetHeight(const CImage argCImage, idrs_exception *pargException);
113
126IDRS_UINT CImage_GetByteWidth(const CImage argCImage, idrs_exception *pargException);
127
136IDRS_UINT CImage_GetImageSize(const CImage argCImage, idrs_exception *pargException);
137
146IDRS_UINT CImage_GetResolution(const CImage argCImage, idrs_exception *pargException);
147
156IDRS_UINT CImage_GetBitsPerPixel(const CImage argCImage, idrs_exception *pargException);
157
166void CImage_SetResolution(CImage argCImage, IDRS_UINT const uiResolution, idrs_exception *pargException);
167
175CImagePixels CImage_GetImagePixels(const CImage argCImage, idrs_exception *pargException);
176
185enum ColorMode CImage_GetColorMode(const CImage argCImage, idrs_exception *pargException);
186
196const CIDRS CImage_GetIDRS(const CImage argCImage, idrs_exception *pargException);
197
205IDRS_BOOL CImage_IsDefaultResolution(const CImage argCImage, idrs_exception *pargException);
206
214void CImage_Destroy(CImage argCImage, idrs_exception *pargException);
215
216#ifdef __cplusplus
217}
218#endif /* __cplusplus */
219
220#endif /* CIMAGE_INTERFACE_H */
Interface for CIDRS wrapper.
IDRS_UINT CImage_GetHeight(const CImage argCImage, idrs_exception *pargException)
Gets the image width, in pixels.
IDRS_UINT CImage_GetImageSize(const CImage argCImage, idrs_exception *pargException)
Gets the image size, in bytes.
void CImage_CreateBitmap(CImage argCImage, IDRS_UINT const uiWidth, IDRS_UINT const uiHeight, enum ColorMode const colorMode, IDRS_UINT const uiResolution, idrs_exception *pargException)
CreateBitmap modifies the current image buffer to fit to the specified characteristics.
CImage CImage_Clone(const CImage argCImage, idrs_exception *pargException)
Clone the current image.
IDRS_BOOL CImage_IsDefaultResolution(const CImage argCImage, idrs_exception *pargException)
Provides the information, if the current resolution parameter is the default one.
IDRS_UINT CImage_GetResolution(const CImage argCImage, idrs_exception *pargException)
Gets the image resolution.
void CImage_SetResolution(CImage argCImage, IDRS_UINT const uiResolution, idrs_exception *pargException)
CImage CImage_Create3(const CImage argImage, idrs_exception *pargException)
Creates an image and initializes it with the content of the supplied image parameter.
IDRS_UINT CImage_GetBitsPerPixel(const CImage argCImage, idrs_exception *pargException)
Gets the image bit per pixels info.
void CImage_CreateBitmap2(CImage argCImage, IDRS_UINT const uiWidth, IDRS_UINT const uiHeight, enum ColorMode const colorMode, IDRS_UINT const uiResolution, ILineReader lrLineReader, idrs_exception *pargException)
CreateBitmap modifies the current image buffer to meet the characteristics and sets its lines using t...
CImage CImage_Create2(CIDRS argIDRS, IDRS_UINT32 const uiWidth, IDRS_UINT32 const uiHeight, enum ColorMode const colorMode, IDRS_UINT32 const uiResolution, idrs_exception *pargException)
Create creates an image buffer with the given characteristics.
IDRS_UINT CImage_GetByteWidth(const CImage argCImage, idrs_exception *pargException)
Gets the image byte width.
const CIDRS CImage_GetIDRS(const CImage argCImage, idrs_exception *pargException)
Returns the CIDRS handle used.
IDRS_UINT CImage_GetWidth(const CImage argCImage, idrs_exception *pargException)
Gets the image width, in pixels.
CImagePixels CImage_GetImagePixels(const CImage argCImage, idrs_exception *pargException)
Gets the image pixels data.
CImage CImage_Create(CIDRS argIDRS, idrs_exception *pargException)
Create creates an empty image.
void CImage_Destroy(CImage argCImage, idrs_exception *pargException)
Destroys a CImage handle.
enum ColorMode CImage_GetColorMode(const CImage argCImage, idrs_exception *pargException)
Returns the color mode of the image.
Interface for CImageLoadOptions wrapper.
Interface for CImagePixels wrapper.
Interface for CImageSaveOptions wrapper.
Interface for CObjPtr wrapper.
Interface for EnumDefinitions wrapper.
ColorMode
The image color modes handles by iDRS.
Definition EnumDefinitions_interface.h:1396
Interface for IByteStream wrapper.
The CImage class manages images for iDRS.
The CImagePixels class handles the pixels of an image.
The ILineReader defines the interface required to provide a custom line reader.
IDRS_INT IDRS_BOOL
A Boolean value.
Definition idrsstd_interface.h:37
unsigned int IDRS_UINT32
An unsigned integer on 32 bits.
Definition idrsstd_interface.h:29
unsigned int IDRS_UINT
An unsigned integer.
Definition idrsstd_interface.h:27