PopplerColor

PopplerColor — Colors

Functions

Types and Values

Object Hierarchy

    GBoxed
    ╰── PopplerColor

Includes

#include <poppler.h>

Description

Functions

poppler_color_copy ()

PopplerColor *
poppler_color_copy (PopplerColor *color);

Creates a copy of color

Parameters

color

a PopplerColor to copy

 

Returns

a new allocated copy of color


poppler_color_free ()

void
poppler_color_free (PopplerColor *color);

Frees the given PopplerColor

Parameters

color

a PopplerColor

 

poppler_color_new ()

PopplerColor *
poppler_color_new (void);

Creates a new PopplerColor

Returns

a new PopplerColor, use poppler_color_free() to free it

Types and Values

PopplerColor

typedef struct {
    guint16 red;
    guint16 green;
    guint16 blue;
} PopplerColor;

A PopplerColor describes a RGB color. Color components are values between 0 and 65535

Members

guint16 red;

the red component of color

 

guint16 green;

the green component of color

 

guint16 blue;

the blue component of color