69 us->
data = mmap(0, statbuf.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
70 if (us->
data == MAP_FAILED)
73 us->
data =
new char[statbuf.st_size];
74 fread(us->
data, 1, (
size_t)statbuf.st_size, us->
f);
87 gvprintf(job,
"gsave %g %g translate newpath\n", b.
LL.
x - (
double)(us->
x),
88 b.
LL.
y - (
double)(us->
y));
105 {0,
nullptr, 0,
nullptr,
nullptr}};
void gvusershape_file_release(usershape_t *us)
bool gvusershape_file_access(usershape_t *us)
void gvprintf(GVJ_t *job, const char *format,...)
static gvloadimage_engine_t engine_ps
gvplugin_installed_t gvloadimage_lasi_types[]
static void ps_freeimage(usershape_t *us)
static void lasi_loadimage_ps(GVJ_t *job, usershape_t *us, boxf b, bool)
usershape described by a postscript file
void epsf_emit_body(GVJ_t *job, usershape_t *us)
void(* datafree)(usershape_t *us)