iDRS™ SDK 16
Loading...
Searching...
No Matches
CImagePixels_interface.h
Go to the documentation of this file.
1
7#ifndef CIMAGEPIXELS_INTERFACE_H
8
9#define CIMAGEPIXELS_INTERFACE_H
10
12#include "CObjPtr_interface.h"
13
14#include "idrs_common.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
33void CImagePixels_SetPixelColor(CImagePixels argCImagePixels, IDRS_UINT32 const uiCol, IDRS_UINT32 const uiRow, const IDRS_COLOR* color, idrs_exception *pargException);
34
45IDRS_COLOR CImagePixels_GetPixelColor(const CImagePixels argCImagePixels, IDRS_UINT32 const uiCol, IDRS_UINT32 const uiRow, idrs_exception *pargException);
46
58void CImagePixels_FillBitmap(CImagePixels argCImagePixels, const IDRS_COLOR* color, idrs_exception *pargException);
59
66IDRS_PVOID CImagePixels_GetPixels(const CImagePixels argCImagePixels, idrs_exception *pargException);
67
78void CImagePixels_SetPixelsBuffer(CImagePixels argCImagePixels, IDRS_PBYTE const xbPixelsBuffer, IDRS_UINT32 const uiBufferSize, idrs_exception *pargException);
79
91IDRS_UINT32 CImagePixels_GetPixelsBufferSize(const CImagePixels argCImagePixels, idrs_exception *pargException);
92
103void CImagePixels_GetPixelsBuffer(const CImagePixels argCImagePixels, IDRS_PBYTE xbPixelsBuffer, IDRS_UINT32 const uiBufferSize, idrs_exception *pargException);
104
112IDRS_UINT32 CImagePixels_GetWidth(const CImagePixels argCImagePixels, idrs_exception *pargException);
113
121IDRS_UINT32 CImagePixels_GetHeight(const CImagePixels argCImagePixels, idrs_exception *pargException);
122
134IDRS_UINT32 CImagePixels_GetByteWidth(const CImagePixels argCImagePixels, idrs_exception *pargException);
135
142enum ColorMode CImagePixels_GetColorMode(const CImagePixels argCImagePixels, idrs_exception *pargException);
143
154IDRS_UINT32 CImagePixels_GetImageSize(IDRS_UINT32 const uiWidth, IDRS_UINT32 const uiHeight, enum ColorMode const cmColorMode, idrs_exception *pargException);
155
165IDRS_UINT32 CImagePixels_GetByteWidth2(IDRS_UINT32 const uiWidth, enum ColorMode const cmColorMode, idrs_exception *pargException);
166
174void CImagePixels_Destroy(CImagePixels argCImagePixels, idrs_exception *pargException);
175
176#ifdef __cplusplus
177}
178#endif /* __cplusplus */
179
180#endif /* CIMAGEPIXELS_INTERFACE_H */
IDRS_UINT32 CImagePixels_GetByteWidth(const CImagePixels argCImagePixels, idrs_exception *pargException)
Gets the image byte width.
void CImagePixels_GetPixelsBuffer(const CImagePixels argCImagePixels, IDRS_PBYTE xbPixelsBuffer, IDRS_UINT32 const uiBufferSize, idrs_exception *pargException)
Gets the image pixels to a preallocated buffer.
IDRS_UINT32 CImagePixels_GetWidth(const CImagePixels argCImagePixels, idrs_exception *pargException)
Gets the image width, in pixels.
IDRS_UINT32 CImagePixels_GetByteWidth2(IDRS_UINT32 const uiWidth, enum ColorMode const cmColorMode, idrs_exception *pargException)
Gets the width in bytes of an image with the provided properties.
enum ColorMode CImagePixels_GetColorMode(const CImagePixels argCImagePixels, idrs_exception *pargException)
void CImagePixels_FillBitmap(CImagePixels argCImagePixels, const IDRS_COLOR *color, idrs_exception *pargException)
FillBitmap fills the image with the given color.
void CImagePixels_SetPixelsBuffer(CImagePixels argCImagePixels, IDRS_PBYTE const xbPixelsBuffer, IDRS_UINT32 const uiBufferSize, idrs_exception *pargException)
Sets the image pixels from an external buffer.
IDRS_UINT32 CImagePixels_GetHeight(const CImagePixels argCImagePixels, idrs_exception *pargException)
Gets the image width, in pixels.
IDRS_UINT32 CImagePixels_GetPixelsBufferSize(const CImagePixels argCImagePixels, idrs_exception *pargException)
Gets the size of the buffer allocated to store the image pixels.
IDRS_COLOR CImagePixels_GetPixelColor(const CImagePixels argCImagePixels, IDRS_UINT32 const uiCol, IDRS_UINT32 const uiRow, idrs_exception *pargException)
Gets the color of the pixel at the given coordinates.
IDRS_UINT32 CImagePixels_GetImageSize(IDRS_UINT32 const uiWidth, IDRS_UINT32 const uiHeight, enum ColorMode const cmColorMode, idrs_exception *pargException)
Gets the image size image with the provided properties.
void CImagePixels_SetPixelColor(CImagePixels argCImagePixels, IDRS_UINT32 const uiCol, IDRS_UINT32 const uiRow, const IDRS_COLOR *color, idrs_exception *pargException)
Sets the color of the pixel at the given coordinates.
IDRS_PVOID CImagePixels_GetPixels(const CImagePixels argCImagePixels, idrs_exception *pargException)
void CImagePixels_Destroy(CImagePixels argCImagePixels, idrs_exception *pargException)
Destroys a CImagePixels handle.
Interface for CObjPtr wrapper.
Interface for EnumDefinitions wrapper.
ColorMode
The image color modes handles by iDRS.
Definition EnumDefinitions_interface.h:1396
The CImagePixels class handles the pixels of an image.
unsigned int IDRS_UINT32
An unsigned integer on 32 bits.
Definition idrsstd_interface.h:29
IDRS_BYTE * IDRS_PBYTE
Pointer to a byte.
Definition idrsstd_interface.h:17
void * IDRS_PVOID
A void pointer.
Definition idrsstd_interface.h:49
Structure defines a color with Red, Green and Blue components.
Definition idrsstd_interface.h:84