Encapsulated Postscript support

Encapsulated Postscript support

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GOImage
        ╰── GOSpectre

Description

Functions

go_spectre_new_from_data ()

GOImage *
go_spectre_new_from_data (char const *data,
                          size_t length,
                          GError **error);

Creates a new PostScript image from data in memory.

Parameters

data

PostScript data

 

length

length of data in bytes

 

error

location to store error.

[out][optional]

Returns

a new GOImage or NULL on error.

[transfer full][nullable]


go_spectre_new_from_file ()

GOImage *
go_spectre_new_from_file (char const *filename,
                          GError **error);

Creates a new PostScript image from a file.

Parameters

filename

path to a PostScript file

 

error

location to store error.

[out][optional]

Returns

a new GOImage or NULL on error.

[transfer full][nullable]

Types and Values

GOSpectre

typedef struct _GOSpectre GOSpectre;