Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
gvloadimage_gd.c File Reference
#include "config.h"
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <util/alloc.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 27 of file gvloadimage_gd.c.

Function Documentation

◆ gd_freeimage()

static void gd_freeimage ( usershape_t us)
static

Definition at line 34 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 39 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 92 of file gvloadimage_gd.c.

References GVJ_s::context, usershape_s::data, 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 180 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 82 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 244 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 248 of file gvloadimage_gd.c.

◆ gvloadimage_gd_types

gvplugin_installed_t gvloadimage_gd_types[]

Definition at line 258 of file gvloadimage_gd.c.