473,394 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

how doi draw pixl by pixl

(planning to do this in C#)
plz, if you know tell me :)
Im interested in handling the drawing to a surface
manually pixel by pixel. For example I want to draw a
640x480 image according to some method I make, perhaps
each pixel is randomly colored. I know there is the set
pixel method, but thats not fast enough for such a large
surface. So is there a way for me to prepare the image
pixel by pixel without drawing it, and then send it to the
surface all at once. Also is there any way for me to take
advantage of hardware support in any way for this, that
would be very important if it is possible?
Thank you very much!!
Jul 21 '05 #1
2 1615
You can override the paint method... For powerfull graphic stuff, take a
look at GDI, for example:
http://www.csharpfriends.com/Article...x?articleID=59
http://www.csharphelp.com/archives2/archive306.html

--
Greetz,
Jan
__________________________________
Read my weblog: http://weblogs.asp.net/jan
"Ivan D" <ru**********@hotmail.com> schreef in bericht
news:01****************************@phx.gbl...
(planning to do this in C#)
plz, if you know tell me :)
Im interested in handling the drawing to a surface
manually pixel by pixel. For example I want to draw a
640x480 image according to some method I make, perhaps
each pixel is randomly colored. I know there is the set
pixel method, but thats not fast enough for such a large
surface. So is there a way for me to prepare the image
pixel by pixel without drawing it, and then send it to the
surface all at once. Also is there any way for me to take
advantage of hardware support in any way for this, that
would be very important if it is possible?
Thank you very much!!

Jul 21 '05 #2
Unsafe code is probably the fastest way to go to draw pictures. Take a look
at the following article. It shows an example on how to effeciently set
every pixel of an image at a decent speed.
http://msdn.microsoft.com/library/de...rp11152001.asp

Yves

"Ivan D" <ru**********@hotmail.com> schreef in bericht
news:01****************************@phx.gbl...
(planning to do this in C#)
plz, if you know tell me :)
Im interested in handling the drawing to a surface
manually pixel by pixel. For example I want to draw a
640x480 image according to some method I make, perhaps
each pixel is randomly colored. I know there is the set
pixel method, but thats not fast enough for such a large
surface. So is there a way for me to prepare the image
pixel by pixel without drawing it, and then send it to the
surface all at once. Also is there any way for me to take
advantage of hardware support in any way for this, that
would be very important if it is possible?
Thank you very much!!

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Matt | last post by:
I am writing a recursive program to draw the lines recursively, given the range and number of intervals (n) between the range. The problem is I don't know how to draw the line in point 0.375, as...
0
by: Florida Draw | last post by:
------=_NextPart_000_0012_1D5428A2.65C196F8 Content-Type: text/plain Content-Transfer-Encoding: 8bit Sign-up for the FREE Holiday Giveaway Draw You must register to be eligible for the draw....
5
by: Matt | last post by:
I am writing a recursive program to draw the lines recursively, given the range and number of intervals (n) between the range. The problem is I don't know how to draw the line in point 0.375, as...
3
by: Colin McGuire | last post by:
Hi there. I have written a small procedure to draw various shapes on things. A bit of it is shown below. Private Sub drawShape(ByVal shapeType As Integer, ByRef g As Graphics) Select Case...
2
by: dan heskett | last post by:
I am owner-drawing a listbox, in an attempt to create a nice list with some custom "fields" and text layout. Essentially it works, but I must be missing something big, conceptually, because I...
2
by: Ivan D | last post by:
(planning to do this in C#) plz, if you know tell me :) Im interested in handling the drawing to a surface manually pixel by pixel. For example I want to draw a 640x480 image according to some...
1
by: zxo102 | last post by:
Hi everyone, I have tried two days to figure out how to draw the image in wx.BufferedDC on the page created by AddPage of wx.Notebook but still got no clue. The attached example works fine. If...
3
by: Daniel Mark | last post by:
Hello all: I am looking the sample code posted on PIL website http://www.pythonware.com/library/pil/handbook/imagedraw.htm ################################################ <<Draw a Grey Cross...
9
by: zhaow | last post by:
Hi, All Greetings! I want to develop as appllication that requires a line-drawing function in the blank area between two forms. I have looked up the MSDN, it says that a graphics object need a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.