Re: [gtkmm] Drawing primitives on top of an image.
- From: Paul Davis <paul linuxaudiosystems com>
- To: Ainsley Pereira <gtkmm pebble org uk>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] Drawing primitives on top of an image.
- Date: Wed, 27 Aug 2003 10:17:29 -0400
>On Wed, Aug 27, 2003 at 02:55:26PM +0300, Giannis Georgalis wrote:
>>
>> Hello,
>> I'm trying to write a program that will draw primitives (circles,
>> rectangles and lines), on top of an image that I'll read from a
>> file. Stealing code from the "examples" section and the gtkmm
>> tutorial, I was able to write the following program, which does not
>> work as expected (it only displays the image).
>>
>> What am I missing ? Any hint or pointer is highly appreciated.
>
>Hi,
> I think you're missing an actual DrawingArea widget. I'm not
> entirely sure if that's necessary, but it wouldn't hurt.
also, you should only *ever* put drawing functions (for any kind of
visible thing: a line, an image, text, etc) in an expose event
handler.
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]