Re: [gtkmm] Gtk::Image scale?
- From: "David B. Davis" <dbdavis dbd-associates com>
- To: Akbar <linux cwazy co uk>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] Gtk::Image scale?
- Date: Tue, 25 May 2004 15:14:48 -0500
Akbar wrote:
I use this to display wallpapers:
Gtk::Image* m_Picture;
m_refGlade->get_widget("picture", m_Picture);
if(m_Picture) {
// some code here
Glib::ustring temp = row2[m_Columns.m_col_wallp];
m_Picture->set(temp);
}
However my wallpaper is too big to display in my window. How can I scale
it?
Akbar,
If you load the image first into a Gdk::Pixbuf, you can use its scale()
or scale_simple() methods, then use Image->set(Pixbuf).
Good luck,
David
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]