98 IMAGE(
unsigned int aXsize,
unsigned int aYsize );
119 void Setpixel(
int aX,
int aY,
unsigned char aValue );
129 unsigned char Getpixel(
int aX,
int aY )
const;
139 void Hline(
int aXStart,
int aXEnd,
int aY,
unsigned char aValue );
141 void CircleFilled(
int aCx,
int aCy,
int aRadius,
unsigned char aValue );
195 void SaveAsPNG(
const wxString& aFileName )
const;
226 void plot8CircleLines(
int aCx,
int aCy,
int aX,
int aY,
unsigned char aValue );
Manage an 8-bit channel image.
IMAGE_WRAP m_wraping
current wrapping type
void CircleFilled(int aCx, int aCy, int aRadius, unsigned char aValue)
void EfxFilter(IMAGE *aInImg, IMAGE_FILTER aFilterType)
Apply a filter to the input image and store it in the image class.
void CopyFull(const IMAGE *aImgA, const IMAGE *aImgB, IMAGE_OP aOperation)
Perform a copy operation based on aOperation type.
unsigned int m_width
width of the image
void SaveAsPNG(const wxString &aFileName) const
Save image buffer to a PNG file into the working folder.
void EfxFilter_SkipCenter(IMAGE *aInImg, IMAGE_FILTER aFilterType, unsigned int aRadius)
Apply a filter to the input image and store it in the image class.
unsigned char * GetBuffer() const
Get the image buffer pointer.
void Setpixel(int aX, int aY, unsigned char aValue)
Set a value in a pixel position, position is clamped in accordance with the current clamp settings.
unsigned int m_height
height of the image
unsigned char * m_pixels
buffer to store the image 8bit-channel
void Invert()
Invert the values of this image <- (255 - this)
void SetPixelsFromNormalizedFloat(const float *aNormalizedFloatArray)
Set the current channel from a float normalized (0.0 - 1.0) buffer.
IMAGE(unsigned int aXsize, unsigned int aYsize)
Construct a IMAGE based on image size.
unsigned int GetHeight() const
void plot8CircleLines(int aCx, int aCy, int aX, int aY, unsigned char aValue)
void Hline(int aXStart, int aXEnd, int aY, unsigned char aValue)
Draw a horizontal line.
unsigned char Getpixel(int aX, int aY) const
Get the pixel value from pixel position, position is clamped in accord with the current clamp setting...
bool wrapCoords(int *aXo, int *aYo) const
Calculate the coordinates points in accord with the current clamping settings.
unsigned int GetWidth() const
unsigned int m_wxh
width * height precalc value
#define CLAMP(n, min, max)
IMAGE_WRAP
Image wrap type enumeration.
@ ZERO
Coords that wraps are not evaluated.
@ WRAP
Coords are wrapped around.
IMAGE_FILTER
Filter type enumeration.
IMAGE_OP
Image operation type.
5x5 Filter struct parameters