Graphviz 12.0.1~dev.20240715.2254
Loading...
Searching...
No Matches
gvloadimage_gd.c File Reference
#include "config.h"
#include <stdbool.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <gvc/gvplugin_loadimage.h>
#include <gvc/gvio.h>
#include <gd.h>
Include dependency graph for gvloadimage_gd.c:

Go to the source code of this file.

Enumerations

enum  format_type {
  FORMAT_PNG_GD , FORMAT_GIF_GD , FORMAT_JPG_GD , FORMAT_GD_GD ,
  FORMAT_GD2_GD , FORMAT_XPM_GD , FORMAT_WBMP_GD , FORMAT_XBM_GD ,
  FORMAT_PNG_PS , FORMAT_GIF_PS , FORMAT_JPG_PS , FORMAT_GD_PS ,
  FORMAT_GD2_PS , FORMAT_XPM_PS , FORMAT_WBMP_PS , FORMAT_XBM_PS ,
  FORMAT_PNG_CAIRO , FORMAT_GIF_CAIRO , FORMAT_JPG_CAIRO , FORMAT_GD_CAIRO ,
  FORMAT_GD2_CAIRO , FORMAT_XPM_CAIRO , FORMAT_WBMP_CAIRO , FORMAT_XBM_CAIRO
}
 

Functions

static void gd_freeimage (usershape_t *us)
 
static gdImagePtr gd_loadimage (GVJ_t *job, usershape_t *us)
 
static gdImagePtr gd_rotateimage (gdImagePtr im, int rotation)
 
static void gd_loadimage_gd (GVJ_t *job, usershape_t *us, boxf b, bool filled)
 
static void gd_loadimage_ps (GVJ_t *job, usershape_t *us, boxf b, bool filled)
 

Variables

static gvloadimage_engine_t engine
 
static gvloadimage_engine_t engine_ps
 
gvplugin_installed_t gvloadimage_gd_types []
 

Enumeration Type Documentation

◆ format_type

Enumerator
FORMAT_PNG_GD 
FORMAT_GIF_GD 
FORMAT_JPG_GD 
FORMAT_GD_GD 
FORMAT_GD2_GD 
FORMAT_XPM_GD 
FORMAT_WBMP_GD 
FORMAT_XBM_GD 
FORMAT_PNG_PS 
FORMAT_GIF_PS 
FORMAT_JPG_PS 
FORMAT_GD_PS 
FORMAT_GD2_PS 
FORMAT_XPM_PS 
FORMAT_WBMP_PS 
FORMAT_XBM_PS 
FORMAT_PNG_CAIRO 
FORMAT_GIF_CAIRO 
FORMAT_JPG_CAIRO 
FORMAT_GD_CAIRO 
FORMAT_GD2_CAIRO 
FORMAT_XPM_CAIRO 
FORMAT_WBMP_CAIRO 
FORMAT_XBM_CAIRO 

Definition at line 26 of file gvloadimage_gd.c.

Function Documentation

◆ gd_freeimage()

static void gd_freeimage ( usershape_t us)
static

Definition at line 33 of file gvloadimage_gd.c.

References usershape_s::data.

Referenced by gd_loadimage().

Here is the caller graph for this function:

◆ gd_loadimage()

static gdImagePtr gd_loadimage ( GVJ_t job,
usershape_t us 
)
static

Definition at line 38 of file gvloadimage_gd.c.

References usershape_s::data, usershape_s::datafree, usershape_s::f, FT_GIF, FT_JPEG, FT_PNG, gd_freeimage(), gvusershape_file_access(), gvusershape_file_release(), usershape_s::name, NULL, and usershape_s::type.

Referenced by gd_loadimage_gd(), and gd_loadimage_ps().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gd_loadimage_gd()

static void gd_loadimage_gd ( GVJ_t job,
usershape_t us,
boxf  b,
bool  filled 
)
static

Definition at line 91 of file gvloadimage_gd.c.

References GVJ_s::context, gd_loadimage(), gd_rotateimage(), boxf::LL, GVJ_s::rotation, ROUND, boxf::UR, pointf_s::x, and pointf_s::y.

Here is the call graph for this function:

◆ gd_loadimage_ps()

static void gd_loadimage_ps ( GVJ_t job,
usershape_t us,
boxf  b,
bool  filled 
)
static

Definition at line 175 of file gvloadimage_gd.c.

References GVJ_s::dpi, gd_loadimage(), gvprintf(), gvputs(), boxf::LL, NULL, boxf::UR, pointf_s::x, X, pointf_s::y, and Y.

Here is the call graph for this function:

◆ gd_rotateimage()

static gdImagePtr gd_rotateimage ( gdImagePtr  im,
int  rotation 
)
static

Definition at line 81 of file gvloadimage_gd.c.

Referenced by gd_loadimage_gd().

Here is the caller graph for this function:

Variable Documentation

◆ engine

gvloadimage_engine_t engine
static
Initial value:
= {
}
static void gd_loadimage_gd(GVJ_t *job, usershape_t *us, boxf b, bool filled)

Definition at line 239 of file gvloadimage_gd.c.

Referenced by gvLayout(), layout(), and tcldot_layout().

◆ engine_ps

gvloadimage_engine_t engine_ps
static
Initial value:
= {
}
static void gd_loadimage_ps(GVJ_t *job, usershape_t *us, boxf b, bool filled)

Definition at line 243 of file gvloadimage_gd.c.

◆ gvloadimage_gd_types

gvplugin_installed_t gvloadimage_gd_types[]

Definition at line 253 of file gvloadimage_gd.c.