[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Draw text to a GdkPixbuf
- From: Alexander Semenov <bohtvaroh gmail com>
- To: Francesco Sepic <francesco sepic gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Draw text to a GdkPixbuf
- Date: Mon, 14 Apr 2008 14:13:52 +0300
Why don't you want to draw the text you need in your "expose" function?
You simply redefine the GtkWidgetClass "expose-event" and draw there.
On Mon, 2008-04-14 at 12:55 +0200, Francesco Sepic wrote:
> On Mon, Apr 14, 2008 at 12:31 PM, Alexander Semenov <bohtvaroh gmail com> wrote:
> > Hi.
> >
> > What about drawing GdkPixbuf and then your text on GdkWindow?
> >
>
> I'm drawing a scale bar on a map and I'd like to have different types
> of scale bar.
> The position of the text that i have to draw (for example "50 km")
> depends on specific scale bar.
> So i want to create different functions that return a GdkPixbuf with
> the text already rendered.
>
> Thanks.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]