Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdk-pixbuf-transform.h File Reference
#include <glib.h>
#include <gdk-pixbuf/gdk-pixbuf-core.h>

Go to the source code of this file.

Enumerations

enum  GdkInterpType { GDK_INTERP_NEAREST , GDK_INTERP_TILES , GDK_INTERP_BILINEAR , GDK_INTERP_HYPER }
 
enum  GdkPixbufRotation { GDK_PIXBUF_ROTATE_NONE = 0 , GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE = 90 , GDK_PIXBUF_ROTATE_UPSIDEDOWN = 180 , GDK_PIXBUF_ROTATE_CLOCKWISE = 270 }
 

Functions

GDK_PIXBUF_AVAILABLE_IN_ALL void gdk_pixbuf_scale (const GdkPixbuf *src, GdkPixbuf *dest, int dest_x, int dest_y, int dest_width, int dest_height, double offset_x, double offset_y, double scale_x, double scale_y, GdkInterpType interp_type)
 
GDK_PIXBUF_AVAILABLE_IN_ALL void gdk_pixbuf_composite (const GdkPixbuf *src, GdkPixbuf *dest, int dest_x, int dest_y, int dest_width, int dest_height, double offset_x, double offset_y, double scale_x, double scale_y, GdkInterpType interp_type, int overall_alpha)
 
GDK_PIXBUF_AVAILABLE_IN_ALL void gdk_pixbuf_composite_color (const GdkPixbuf *src, GdkPixbuf *dest, int dest_x, int dest_y, int dest_width, int dest_height, double offset_x, double offset_y, double scale_x, double scale_y, GdkInterpType interp_type, int overall_alpha, int check_x, int check_y, int check_size, guint32 color1, guint32 color2)
 
GDK_PIXBUF_AVAILABLE_IN_ALL GdkPixbufgdk_pixbuf_scale_simple (const GdkPixbuf *src, int dest_width, int dest_height, GdkInterpType interp_type)
 
GDK_PIXBUF_AVAILABLE_IN_ALL GdkPixbufgdk_pixbuf_composite_color_simple (const GdkPixbuf *src, int dest_width, int dest_height, GdkInterpType interp_type, int overall_alpha, int check_size, guint32 color1, guint32 color2)
 
GDK_PIXBUF_AVAILABLE_IN_2_6 GdkPixbufgdk_pixbuf_rotate_simple (const GdkPixbuf *src, GdkPixbufRotation angle)
 
GDK_PIXBUF_AVAILABLE_IN_2_6 GdkPixbufgdk_pixbuf_flip (const GdkPixbuf *src, gboolean horizontal)
 

Enumeration Type Documentation

◆ GdkInterpType

GdkInterpType: @GDK_INTERP_NEAREST: Nearest neighbor sampling; this is the fastest and lowest quality mode. Quality is normally unacceptable when scaling down, but may be OK when scaling up. @GDK_INTERP_TILES: This is an accurate simulation of the PostScript image operator without any interpolation enabled. Each pixel is rendered as a tiny parallelogram of solid color, the edges of which are implemented with antialiasing. It resembles nearest neighbor for enlargement, and bilinear for reduction. @GDK_INTERP_BILINEAR: Best quality/speed balance; use this mode by default. Bilinear interpolation. For enlargement, it is equivalent to point-sampling the ideal bilinear-interpolated image. For reduction, it is equivalent to laying down small tiles and integrating over the coverage area. @GDK_INTERP_HYPER: This is the slowest and highest quality reconstruction function. It is derived from the hyperbolic filters in Wolberg's "Digital Image Warping", and is formally defined as the hyperbolic-filter sampling the ideal hyperbolic-filter interpolated image (the filter is designed to be idempotent for 1:1 pixel mapping). Deprecated: this interpolation filter is deprecated, as in reality it has a lower quality than the @GDK_INTERP_BILINEAR filter (Since: 2.38)

Interpolation modes for scaling functions.

The GDK_INTERP_NEAREST mode is the fastest scaling method, but has horrible quality when scaling down; GDK_INTERP_BILINEAR is the best choice if you aren't sure what to choose, it has a good speed/quality balance.

Note: Cubic filtering is missing from the list; hyperbolic interpolation is just as fast and results in higher quality.

Enumerator
GDK_INTERP_NEAREST 
GDK_INTERP_TILES 
GDK_INTERP_BILINEAR 
GDK_INTERP_HYPER 

Definition at line 73 of file gdk-pixbuf-transform.h.

◆ GdkPixbufRotation

GdkPixbufRotation: @GDK_PIXBUF_ROTATE_NONE: No rotation. @GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE: Rotate by 90 degrees. @GDK_PIXBUF_ROTATE_UPSIDEDOWN: Rotate by 180 degrees. @GDK_PIXBUF_ROTATE_CLOCKWISE: Rotate by 270 degrees.

The possible rotations which can be passed to gdk_pixbuf_rotate_simple().

To make them easier to use, their numerical values are the actual degrees.

Enumerator
GDK_PIXBUF_ROTATE_NONE 
GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE 
GDK_PIXBUF_ROTATE_UPSIDEDOWN 
GDK_PIXBUF_ROTATE_CLOCKWISE 

Definition at line 91 of file gdk-pixbuf-transform.h.

Function Documentation

◆ gdk_pixbuf_composite()

GDK_PIXBUF_AVAILABLE_IN_ALL void gdk_pixbuf_composite ( const GdkPixbuf * src,
GdkPixbuf * dest,
int dest_x,
int dest_y,
int dest_width,
int dest_height,
double offset_x,
double offset_y,
double scale_x,
double scale_y,
GdkInterpType interp_type,
int overall_alpha )

◆ gdk_pixbuf_composite_color()

GDK_PIXBUF_AVAILABLE_IN_ALL void gdk_pixbuf_composite_color ( const GdkPixbuf * src,
GdkPixbuf * dest,
int dest_x,
int dest_y,
int dest_width,
int dest_height,
double offset_x,
double offset_y,
double scale_x,
double scale_y,
GdkInterpType interp_type,
int overall_alpha,
int check_x,
int check_y,
int check_size,
guint32 color1,
guint32 color2 )

◆ gdk_pixbuf_composite_color_simple()

GDK_PIXBUF_AVAILABLE_IN_ALL GdkPixbuf * gdk_pixbuf_composite_color_simple ( const GdkPixbuf * src,
int dest_width,
int dest_height,
GdkInterpType interp_type,
int overall_alpha,
int check_size,
guint32 color1,
guint32 color2 )

◆ gdk_pixbuf_flip()

GDK_PIXBUF_AVAILABLE_IN_2_6 GdkPixbuf * gdk_pixbuf_flip ( const GdkPixbuf * src,
gboolean horizontal )

◆ gdk_pixbuf_rotate_simple()

GDK_PIXBUF_AVAILABLE_IN_2_6 GdkPixbuf * gdk_pixbuf_rotate_simple ( const GdkPixbuf * src,
GdkPixbufRotation angle )

◆ gdk_pixbuf_scale()

GDK_PIXBUF_AVAILABLE_IN_ALL void gdk_pixbuf_scale ( const GdkPixbuf * src,
GdkPixbuf * dest,
int dest_x,
int dest_y,
int dest_width,
int dest_height,
double offset_x,
double offset_y,
double scale_x,
double scale_y,
GdkInterpType interp_type )

◆ gdk_pixbuf_scale_simple()

GDK_PIXBUF_AVAILABLE_IN_ALL GdkPixbuf * gdk_pixbuf_scale_simple ( const GdkPixbuf * src,
int dest_width,
int dest_height,
GdkInterpType interp_type )