Re: [gtkmm] Drawing primitives on top of an image.



Hi,

On Wed, Aug 27, 2003 at 04:19:17PM +0300, Giannis Georgalis wrote:
> > 	I think you're missing an actual DrawingArea widget. I'm not
> > 	entirely sure if that's necessary, but it wouldn't hurt.
> 
> ok, but then it's not clear to me how can I actually draw an image
> (as a background) from a .jpg file. Can I draw it in the DrawingArea
> widget and over it the primitives ?
 
Yes, that's definitely possible with DrawingAreas - I do it myself in my
own project. If you like, this evening I can post an example that does
it. You should just be able to draw the image as described in the docs,
then call more draw_line etc functions as needed to draw over the
top.

~Ainsley



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