Searching \ for '[TECH] Set pixel for Linux' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=set+pixel+linux
Search entire site for: 'Set pixel for Linux'.

Exact match. Not showing close matches.
PICList Thread
'[TECH] Set pixel for Linux'
2008\07\21@171128 by Herbert Graf

picon face
Hello all,

was wondering if someone could give me some quick advice.

I need to write a quick program, running under Ubuntu. Basically I
simply need a form, and to be able to draw the pixels in the form to
whatever I want.

Speed isn't of utmost concern (obviously faster the better). I would
prefer a solution that uses C/C++ (simply because I have to merge this
project with existing code, don't want to spend too much time porting).

Can anybody point me to a simple example of a program that simply opens
a window and sets a single pixel, I can expand it from there! :)

Quick google searches have presented me with GTK being a possible
solution, but I'll be damned if I can find a SIMPLE example that creates
a form and draws a line or sets a pixel.

Thanks, in advance.

TTYL

2008\07\21@205349 by M. Adam Davis

face picon face
Direct x-windows (ie, no need to fiddle with finicky toolkits, etc):

http://marvel.incheon.ac.kr/infomation/xwindow/Xwindows%20Programming.htm

Enjoy!

Found via google search, "xwindow C draw pixel example."

The framebuffer is another low-cost way to graphics - essentially
drawing straight to the screen, but I don't know how/if Ubuntu
supports it easily.

-Adam

On 7/21/08, Herbert Graf <spam_OUThgrafTakeThisOuTspamemail.com> wrote:
{Quote hidden}

> -

2008\07\21@212425 by John La Rooy

flavicon
face
On Tue, Jul 22, 2008 at 7:11 AM, Herbert Graf <.....hgrafKILLspamspam@spam@email.com> wrote:

> Hello all,
>
> was wondering if someone could give me some quick advice.
>
> I need to write a quick program, running under Ubuntu. Basically I
> simply need a form, and to be able to draw the pixels in the form to
> whatever I want.
>
> Speed isn't of utmost concern (obviously faster the better). I would
> prefer a solution that uses C/C++ (simply because I have to merge this
> project with existing code, don't want to spend too much time porting).
>
> Can anybody point me to a simple example of a program that simply opens
> a window and sets a single pixel, I can expand it from there! :)
>
>
Sounds like a gdk job. gdk is the layer below gtk
http://library.gnome.org/devel/gdk/stable/
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch15.html

John La Rooy

2008\07\22@075030 by sergio masci

flavicon
face
part 1 1275 bytes content-type:TEXT/PLAIN; charset=US-ASCIIHi Herbert,

I've scraped together some code that should give you the basics of what
you need. It came from a working system so I know it works. If nothing
else it should give you details of what to search the net for. A good book
to look at is "xlib programming manual" ISBN 1-56592-002-3

Regards
Sergio Masci


On Mon, 21 Jul 2008, Herbert Graf wrote:

{Quote hidden}

> --

2008\07\27@090737 by Peter Onion

flavicon
face

On Mon, 2008-07-21 at 20:53 -0400, M. Adam Davis wrote:
> Direct x-windows (ie, no need to fiddle with finicky toolkits, etc):
>
> http://marvel.incheon.ac.kr/infomation/xwindow/Xwindows%20Programming.htm

IMNSHO xlib is far more "finicky" than using gtk or gdk.

If you have gtk installed, try running gtk-demo.  There is example code
in there for the drawing area widget.

PeterO



More... (looser matching)
- Last day of these posts
- In 2008 , 2009 only
- Today
- New search...