30#include <FL/Fl_Image.H>
31#include <sptk5/Buffer.h>
38enum class CBorderIndex : uint8_t
57 using resized_draw_function = void (*)(
CPngImage* image,
int srcX,
int srcY,
int srcW,
int srcH,
int destX,
58 int destY,
int destW,
int destH);
79 static void cutTileDraw(
CPngImage* image,
int srcX,
int srcY,
int srcW,
int srcH,
int destX,
int destY,
int destW,
95 int destW,
int destH);
134 void cutTileDraw(
int srcX,
int srcY,
int srcW,
int srcH,
int destX,
int destY,
int destW,
int destH)
136 cutTileDraw(
this, srcX, srcY, srcW, srcH, destX, destY, destW, destH);
150 void cutStretchDraw(
int srcX,
int srcY,
int srcW,
int srcH,
int destX,
int destY,
int destW,
int destH)
152 cutStretchDraw(
this, srcX, srcY, srcW, srcH, destX, destY, destW, destH);
Class CIcon provides a storage of PNG image.
Definition: CIcon.h:72
PNG image that is initialized from the memory buffer.
Definition: CPngImage.h:53
void drawResized(int x, int y, int w, int h, int cornerZone, CPatternDrawMode drawMode, bool drawBackground)
Draws resized image.
CPngImage(const String &fileName)
Constructor.
void cutTileDraw(int srcX, int srcY, int srcW, int srcH, int destX, int destY, int destW, int destH)
Draws a part of the image by cutting a corresponding source and tiling it in required area.
Definition: CPngImage.h:134
void drawResized(int x, int y, int w, int h, int border[], CPatternDrawMode drawMode, bool drawBackground)
Draws resized image.
CPngImage(const Fl_RGB_Image *image)
Constructor.
CPngImage(const Buffer &imagedata)
Constructor.
CPatternDrawMode
The way how the resized parts of image are drawn.
Definition: CPngImage.h:105
static void cutTileDraw(CPngImage *image, int srcX, int srcY, int srcW, int srcH, int destX, int destY, int destW, int destH)
Draws a part of the image by cutting a corresponding source and tiling it in required area.
void load(const Buffer &buffer)
Internal loader from PNG image buffer.
void cutStretchDraw(int srcX, int srcY, int srcW, int srcH, int destX, int destY, int destW, int destH)
Draws a part of the image by cutting a corresponding source and stretching it in required area.
Definition: CPngImage.h:150
static void cutStretchDraw(CPngImage *image, int srcX, int srcY, int srcW, int srcH, int destX, int destY, int destW, int destH)
Draws a part of the image by cutting a corresponding source and stretching it in required area.