Re: 3d image border



hi;

On Wed, 2006-12-13 at 18:17 +0700, beast wrote:
Emmanuele Bassi wrote:
On Wed, 2006-12-13 at 17:43 +0700, beast wrote:
  
I have an image and I would like it to have 3D border ( etched-in?).
Which widget suitable for this purpose?
    

Gtk2::Frame with a Gtk2::Image embedded in?

  
Not quite. The image should not be embossed, but much like button when 
pressed in.

then a Gtk2::ToggleButton with a Gtk2::Image embedded in, and set the
"toggled" property to TRUE (and disable the untoggling). :-)

if you want *the image itself* to be embossed, you should get the
Gtk2::Gdk::Pixbuf, extract the raw data and filter it using an embossing
graphic filter routine - I think it's quite easy to find on google.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi,  E: ebassi gmail com
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]