Re: Best way to receive pixel coordinates from image



"Miguel A. Figueroa-Villanueva" <miguelf msu edu> writes:
> 
> I want to create an app to display an image on screen and be able to recieve
> events such as mouse location, button pressed, etc. I is not an animation so I
> don't think it is going to be very demanding computational-wise. I would be
> reading the RGB values from a file and creating the image to be displayed
> (unless I can display a *.ppm directly). I expect to create functionality such
> as zoom, crop, etc.

Hands down the best way to do this is to use GdkPixbuf, in the
gdk-pixbuf library (to be included in GTK 2 as well).

Havoc




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