33 #include <wx/string.h> 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 );
unsigned char * GetBuffer() const
Get the image buffer pointer.
Coords are wrapped around.
unsigned int m_width
width of the image
bool wrapCoords(int *aXo, int *aYo) const
Calculate the coordinates points in accord with the current clamping settings.
IMAGE_OP
Image operation type.
IMAGE_WRAP m_wraping
current wrapping type
void CopyFull(const IMAGE *aImgA, const IMAGE *aImgB, IMAGE_OP aOperation)
Perform a copy operation based on aOperation type.
IMAGE_FILTER
Filter type enumeration.
void Hline(int aXStart, int aXEnd, int aY, unsigned char aValue)
Draw a horizontal line.
void SaveAsPNG(const wxString &aFileName) const
Save image buffer to a PNG file into the working folder.
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...
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.
void CircleFilled(int aCx, int aCy, int aRadius, unsigned char aValue)
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 char * m_pixels
buffer to store the image 8bit-channel
unsigned int m_wxh
width * height precalc value
Coords that wraps are not evaluated.
Coords are clamped to image size.
IMAGE(unsigned int aXsize, unsigned int aYsize)
Construct a IMAGE based on image size.
void SetPixelsFromNormalizedFloat(const float *aNormalizedFloatArray)
Set the current channel from a float normalized (0.0 - 1.0) buffer.
5x5 Filter struct parameters
void Invert()
Invert the values of this image <- (255 - this)
IMAGE_WRAP
Image wrap type enumeration.
unsigned int GetHeight() const
Manage an 8-bit channel image.
void EfxFilter(IMAGE *aInImg, IMAGE_FILTER aFilterType)
Apply a filter to the input image and store it in the image class.
unsigned int GetWidth() const
unsigned int m_height
height of the image
void plot8CircleLines(int aCx, int aCy, int aX, int aY, unsigned char aValue)