gdk-pixbuf-transform.go RawHistoryFolder
1// Package gdkpixbuf was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package gdkpixbuf
3
4import (
5 "github.com/bnema/puregotk/v4/gobject/types"
6)
7
8// Interpolation modes for scaling functions.
9//
10// The `GDK_INTERP_NEAREST` mode is the fastest scaling method, but has
11// horrible quality when scaling down; `GDK_INTERP_BILINEAR` is the best
12// choice if you aren't sure what to choose, it has a good speed/quality
13// balance.
14//
15// **Note**: Cubic filtering is missing from the list; hyperbolic
16// interpolation is just as fast and results in higher quality.
17type InterpType int
18
19var xInterpTypeGLibType func() types.GType
20
21func InterpTypeGLibType() types.GType {
22 return xInterpTypeGLibType()
23}
24
25const (
26
27 // Nearest neighbor sampling; this is the fastest
28 // and lowest quality mode. Quality is normally unacceptable when scaling
29 // down, but may be OK when scaling up.
30 GdkInterpNearestValue InterpType = 0
31 // This is an accurate simulation of the PostScript
32 // image operator without any interpolation enabled. Each pixel is
33 // rendered as a tiny parallelogram of solid color, the edges of which
34 // are implemented with antialiasing. It resembles nearest neighbor for
35 // enlargement, and bilinear for reduction.
36 GdkInterpTilesValue InterpType = 1
37 // Best quality/speed balance; use this mode by
38 // default. Bilinear interpolation. For enlargement, it is
39 // equivalent to point-sampling the ideal bilinear-interpolated image.
40 // For reduction, it is equivalent to laying down small tiles and
41 // integrating over the coverage area.
42 GdkInterpBilinearValue InterpType = 2
43 // This is the slowest and highest quality
44 // reconstruction function. It is derived from the hyperbolic filters in
45 // Wolberg's "Digital Image Warping", and is formally defined as the
46 // hyperbolic-filter sampling the ideal hyperbolic-filter interpolated
47 // image (the filter is designed to be idempotent for 1:1 pixel mapping).
48 // **Deprecated**: this interpolation filter is deprecated, as in reality
49 // it has a lower quality than the @GDK_INTERP_BILINEAR filter
50 // (Since: 2.38)
51 GdkInterpHyperValue InterpType = 3
52)
53
54// The possible rotations which can be passed to gdk_pixbuf_rotate_simple().
55//
56// To make them easier to use, their numerical values are the actual degrees.
57type PixbufRotation int
58
59var xPixbufRotationGLibType func() types.GType
60
61func PixbufRotationGLibType() types.GType {
62 return xPixbufRotationGLibType()
63}
64
65const (
66
67 // No rotation.
68 GdkPixbufRotateNoneValue PixbufRotation = 0
69 // Rotate by 90 degrees.
70 GdkPixbufRotateCounterclockwiseValue PixbufRotation = 90
71 // Rotate by 180 degrees.
72 GdkPixbufRotateUpsidedownValue PixbufRotation = 180
73 // Rotate by 270 degrees.
74 GdkPixbufRotateClockwiseValue PixbufRotation = 270
75)