Re: Tiling button background image
- From: zentara <zentara1 sbcglobal net>
- To: gtk-perl-list gnome org
- Subject: Re: Tiling button background image
- Date: Thu, 14 Aug 2008 12:57:27 -0400
On Thu, 14 Aug 2008 17:38:05 +0300
"Veli Ogla Sungutay" <velisungutay gmail com> wrote:
Another simple task. I have a button and I need to repeat the
background image horizontally. Just like we do in CSS
background: url(foo.jpg) repeat-x
Any hints?
The easiest way it seems would be to use ImageMagick, (or similar
graphics module)to make a tiled graphic sized to your button, then
set_image on the button. In the PerlMagick demo, there is a shapes.pl
that shows how to make a tiled graphic.
Resizing the button may be tricky.
zentara
--
I'm not really a human, but I play one on earth.
http://zentara.net/Remember_How_Lucky_You_Are.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]