Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
gvloadimage_gdiplus.cpp File Reference
#include "config.h"
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <gvc/gvplugin_loadimage.h>
#include "gvplugin_gdiplus.h"
#include <stringapiset.h>
#include <windows.h>
#include <gdiplus.h>
#include <vector>
Include dependency graph for gvloadimage_gdiplus.cpp:

Go to the source code of this file.

Functions

static void gdiplus_freeimage (usershape_t *us)
 
static std::vector< wchar_t > utf8_to_utf16 (const char *s)
 
static Image * gdiplus_loadimage (usershape_t *us)
 
static void gdiplus_loadimage_gdiplus (GVJ_t *job, usershape_t *us, boxf b, bool)
 

Variables

static gvloadimage_engine_t engine
 
gvplugin_installed_t gvloadimage_gdiplus_types []
 

Function Documentation

◆ gdiplus_freeimage()

static void gdiplus_freeimage ( usershape_t us)
static

Definition at line 26 of file gvloadimage_gdiplus.cpp.

References usershape_s::data.

Referenced by gdiplus_loadimage().

Here is the caller graph for this function:

◆ gdiplus_loadimage()

static Image * gdiplus_loadimage ( usershape_t us)
static

Definition at line 47 of file gvloadimage_gdiplus.cpp.

References usershape_s::data, usershape_s::datafree, gdiplus_freeimage(), gvusershape_file_access(), gvusershape_file_release(), usershape_s::name, and utf8_to_utf16().

Referenced by gdiplus_loadimage_gdiplus().

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

◆ gdiplus_loadimage_gdiplus()

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

Definition at line 74 of file gvloadimage_gdiplus.cpp.

References GVJ_s::context, gdiplus_loadimage(), image, boxf::LL, NULL, boxf::UR, pointf_s::x, and pointf_s::y.

Here is the call graph for this function:

◆ utf8_to_utf16()

static std::vector< wchar_t > utf8_to_utf16 ( const char *  s)
static

Definition at line 31 of file gvloadimage_gdiplus.cpp.

Referenced by gdiplus_loadimage().

Here is the caller graph for this function:

Variable Documentation

◆ engine

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

Definition at line 84 of file gvloadimage_gdiplus.cpp.

◆ gvloadimage_gdiplus_types

gvplugin_installed_t gvloadimage_gdiplus_types[]
Initial value:
= {
{FORMAT_BMP, "bmp:gdiplus", 8, &engine, nullptr},
{FORMAT_GIF, "gif:gdiplus", 8, &engine, nullptr},
{FORMAT_JPEG, "jpe:gdiplus", 8, &engine, nullptr},
{FORMAT_JPEG, "jpeg:gdiplus", 8, &engine, nullptr},
{FORMAT_JPEG, "jpg:gdiplus", 8, &engine, nullptr},
{FORMAT_PNG, "png:gdiplus", 8, &engine, nullptr},
{0, nullptr, 0, nullptr, nullptr}
}
static gvloadimage_engine_t engine
@ FORMAT_BMP
@ FORMAT_JPEG
Definition gvrender_gd.c:37
@ FORMAT_GIF
Definition gvrender_gd.c:36
@ FORMAT_PNG
Definition gvrender_gd.c:38

Definition at line 88 of file gvloadimage_gdiplus.cpp.