"Fossies" - the Fresh Open Source Software Archive

Member "vnstat-2.9/src/image_support.h" (15 Dec 2021, 1654 Bytes) of package /linux/misc/vnstat-2.9.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "image_support.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 2.8_vs_2.9.

    1 #ifndef IMAGE_SUPPORT_H
    2 #define IMAGE_SUPPORT_H
    3 
    4 #include "image.h"
    5 
    6 void imageinit(IMAGECONTENT *ic, const int width, const int height);
    7 void colorinitcheck(const char *color, const int value, const char *cfgtext, const int *rgb);
    8 void layoutinit(IMAGECONTENT *ic, const char *title, const int width, const int height);
    9 void drawlegend(IMAGECONTENT *ic, const int x, const int y, const short israte);
   10 void drawbar(IMAGECONTENT *ic, const int x, const int y, const int len, const uint64_t rx, const uint64_t tx, const uint64_t max, const short isestimate);
   11 void drawpoles(IMAGECONTENT *ic, const int x, const int y, const int len, const uint64_t rx, const uint64_t tx, const uint64_t max);
   12 void drawdonut(IMAGECONTENT *ic, const int x, const int y, const float rxp, const float txp, const int size, const int holesize);
   13 void drawdonut_libgd_bug_workaround(IMAGECONTENT *ic, const int x, const int y, const float rxp, const float txp, const int size, const int holesize);
   14 void drawdonut_libgd_native(IMAGECONTENT *ic, const int x, const int y, const float rxp, const float txp, const int size, const int holesize);
   15 void drawpole(IMAGECONTENT *ic, const int x, const int y, const int length, const int direction, const int maincolor);
   16 void drawarrowup(IMAGECONTENT *ic, const int x, const int y);
   17 void drawarrowright(IMAGECONTENT *ic, const int x, const int y);
   18 void hextorgb(const char *input, int *rgb);
   19 void modcolor(int *rgb, const int offset, const int force);
   20 char *getimagevalue(const uint64_t b, const int len, const int rate);
   21 char *getimagescale(const uint64_t b, const int rate);
   22 uint64_t getscale(const uint64_t input, const int rate);
   23 
   24 #endif