GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Wed Oct 01, 2014 12:16 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Help:About GtkDrawingArea
PostPosted: Sat May 31, 2008 5:02 am 
Offline

Joined: Sat May 31, 2008 2:30 am
Posts: 1
I want to draw points in GtkDrawingArea.
I have 1400 points, all the coordinates storaged in a array, just like (0.00,0.0000),(0.01,0.1234),(0.02,0.0231),...(12.88,1.5764),...(13.99,1.7613)
The X axis steped 0.01 from 0.00 to 13.99, my drawingare is 600*300, How can I draw all these points in drawingarea.


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 31, 2008 10:55 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 3:07 am
Posts: 384
Location: Fairfax, Virginia
You're best option would be to create a GdkPixbuf with the desired number of pixels (1400x?). Then, scale the pixbuf, and print it on the drawing area.

_________________
Andrew Krause

Foundations of GTK+ Development: Buy now for only $31.49!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google Adsense [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group