This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's Calculator Programming subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. General Coding and Design => Calculator Programming
Author Message
Newbie


Bandwidth Hog


Joined: 23 Jan 2004
Posts: 2247

Posted: 23 Jul 2007 03:27:40 pm    Post subject:

Edit: Alright.

To draw a single point in visual basic:

Picturesurface.Fillrectangle(X1,Y1,1,1)


Picturesurface can be anything you declare as graphics. I just chose to use a picture.

Ie: Dim PictureSurface As Graphics = Me.PicName.CreateGraphics


Last edited by Guest on 23 Jul 2007 04:20:13 pm; edited 1 time in total
Back to top
Weregoose
Authentic INTJ


Super Elite (Last Title)


Joined: 25 Nov 2004
Posts: 3976

Posted: 23 Jul 2007 03:49:30 pm    Post subject:

I think it'd be more agreeable to keep the topic's question extant, and to edit the first post with your findings instead; that way, others can reference it later, because every post made in these forums has a strong likelihood of becoming a popular Google result. My two cents.

Last edited by Guest on 23 Jul 2007 03:51:00 pm; edited 1 time in total
Back to top
benryves


Active Member


Joined: 23 Feb 2006
Posts: 564

Posted: 24 Jul 2007 08:25:36 am    Post subject:

Alternatively, use a Bitmap and SetPixel.

If you are writing to lots of pixels at once, consider writing directly to the bitmap by storing the pixel data in an array then using Marshal.Copy to dump the data into the Scan0 of a BitmapData structure.

That probably makes no sense, but the names should be a hint and there's some old sample code here.

Note that GDI+ perfomance increases signficantly on Vista. If you are writing a program that targets XP and you need performance, consider using XNA or MDX to present your graphics to the display.
Back to top
Weregoose
Authentic INTJ


Super Elite (Last Title)


Joined: 25 Nov 2004
Posts: 3976

Posted: 27 Jul 2007 03:29:44 pm    Post subject:

Weregoose wrote:
...every post made in these forums has a strong likelihood of becoming a popular Google result.
Back to top
Newbie


Bandwidth Hog


Joined: 23 Jan 2004
Posts: 2247

Posted: 28 Jul 2007 12:15:52 pm    Post subject:

LOL. Well I guess that's what you get when you have spiders crawling through your website 24 hours a day.
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement