473,411 Members | 1,889 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,411 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 1617
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.