Logo Search packages:      
Sourcecode: ardour version File versions

void Gdk::Drawable::draw_image ( const Glib::RefPtr< const GC > &  gc,
const Glib::RefPtr< const Image > &  image,
int  xsrc,
int  ysrc,
int  xdest,
int  ydest,
int  width = -1,
int  height = -1 
) [inherited]

Draws a Gdk::Image onto a drawable. The depth of the Gdk::Image must match the depth of the Gdk::Drawable.

Parameters:
gc A Gdk::GC.
image The Gdk::Image to draw.
xsrc The left edge of the source rectangle within image .
ysrc The top of the source rectangle within image .
xdest The x coordinate of the destination within drawable .
ydest The y coordinate of the destination within drawable .
width The width of the area to be copied, or -1 to make the area extend to the right edge of image .
height The height of the area to be copied, or -1 to make the area extend to the bottom edge of image .

Definition at line 241 of file drawable.cc.

References Gdk::Drawable::gobj().

{
  gdk_draw_image(gobj(), const_cast<GdkGC*>(Glib::unwrap<GC>(gc)), const_cast<GdkImage*>(Glib::unwrap<Image>(image)), xsrc, ysrc, xdest, ydest, width, height);
}


Generated by  Doxygen 1.6.0   Back to index