Pixbuf Class Reference

List of all members.

Detailed Description

Functions for rendering pixbufs on drawables.


Public Member Functions

GdkPixbuf * gdkP ()
 Gets the type.
 this (GdkPixbuf *gdkPixbuf)
 Create a Pixbuf from a GdkPixbuf.
 this (Pixbuf pixbuf)
 Creates a new Pixbuf from by copying an existing pixbuf.
int getWidth ()
 Gest the width of this pixbuf.
int getHeight ()
 Gets the height of this pixbuf.
 this (char[] fileName, GError **error)
 Creates a new pixbuf from a file.
 this (guchar *data, GdkColorspace colorspace, gboolean has_alpha, int bits_per_sample, int width, int height, int rowstride, GdkPixbufDestroyNotify destroy_fn, gpointer destroy_fn_data)
 Creates a new pixbuf from data.
 this (char **data)
 Creates a new pixbuf from xpm data.
 this (gint data_length, guint8 *data, bit copy_pixels, GError **error)
 Creates a new pixbuf from inline data.
bit save (char[] filename, char[] type, GError **error)
 Save this pixbuf.
void copyAreaFrom (Pixbuf src_pixbuf, int src_x, int src_y, int width, int height, int dest_x, int dest_y)
 Copies an area from other pixbuf into this one.
Pixbuf scaleSimple (int dest_width, int dest_height, InterpType interp_type)
 Creates a scaled version of this pixbuf.


Member Function Documentation

void Pixbuf.copyAreaFrom Pixbuf  src_pixbuf,
int  src_x,
int  src_y,
int  width,
int  height,
int  dest_x,
int  dest_y
 

Copies an area from other pixbuf into this one.

Parameters:
src_pixbuf 
src_x 
src_y 
width 
height 
dest_x 
dest_y 

GdkPixbuf* Pixbuf.gdkP  ) 
 

Gets the type.

Returns:
the type

int Pixbuf.getHeight  ) 
 

Gets the height of this pixbuf.

Returns:
the height

int Pixbuf.getWidth  ) 
 

Gest the width of this pixbuf.

Returns:
the width

bit Pixbuf.save char[]  filename,
char[]  type,
GError **  error
 

Save this pixbuf.

Parameters:
filename 
type 
error 

Pixbuf Pixbuf.scaleSimple int  dest_width,
int  dest_height,
InterpType  interp_type
 

Creates a scaled version of this pixbuf.

Parameters:
dest_width 
dest_height 
interp_type 

Pixbuf.this gint  data_length,
guint8 *  data,
bit  copy_pixels,
GError **  error
 

Creates a new pixbuf from inline data.

Parameters:
data_length 
data 
copy_pixels 
error 

Pixbuf.this char **  data  ) 
 

Creates a new pixbuf from xpm data.

Parameters:
data 

Pixbuf.this guchar *  data,
GdkColorspace  colorspace,
gboolean  has_alpha,
int  bits_per_sample,
int  width,
int  height,
int  rowstride,
GdkPixbufDestroyNotify  destroy_fn,
gpointer  destroy_fn_data
 

Creates a new pixbuf from data.

Parameters:
data 
colorspace 
has_alpha 
bits_per_sample 
width,height 
rowstride 
destroy_fn 
destroy_fn_data 

Pixbuf.this char[]  fileName,
GError **  error
 

Creates a new pixbuf from a file.

Parameters:
fileName 
error 

Pixbuf.this Pixbuf  pixbuf  ) 
 

Creates a new Pixbuf from by copying an existing pixbuf.

Parameters:
pixbuf the existing pixbuf to copy

Pixbuf.this GdkPixbuf *  gdkPixbuf  ) 
 

Create a Pixbuf from a GdkPixbuf.

Parameters:
gdkPixbuf 


SourceForge.net Logo DSource.org Logo digitalmars.com Logo