I want to create a program that will do graphics like math functions &
fractals & stuff. I've been browsing thru books at the bookstores.
Apparently, the Point object replaced Pset. The books explain how to create a
Point object, but not how to use it. I want to be able to plot individual
pixels. I tried DrawEllipse, but that just draws circles. I reckon that I
have to somehow use the Pen & the Point object. I don't want to draw lines. I
want to be able to plot individual pixels, not circles or ellipses or lines
or boxes. Do I have to create a class & use the object to plot the pixels?
So, how do I use the Point object to plot individual pixels? Thank you. David 5 1989
Hello pcnerd,
Point does not replace PSet. Point is a coordinate, not a pixel. Two Points
make a line-segment. 4 Points make a rectangle.. etc.
Look at the Graphics object for drawing functions. You may have to resort
to drawing a rectangle with a width and height of 1.
-Boo I want to create a program that will do graphics like math functions & fractals & stuff. I've been browsing thru books at the bookstores. Apparently, the Point object replaced Pset. The books explain how to create a Point object, but not how to use it. I want to be able to plot individual pixels. I tried DrawEllipse, but that just draws circles. I reckon that I have to somehow use the Pen & the Point object. I don't want to draw lines. I want to be able to plot individual pixels, not circles or ellipses or lines or boxes. Do I have to create a class & use the object to plot the pixels? So, how do I use the Point object to plot individual pixels? Thank you. David
try creating a bitmap, you can then use the SetPixel method to set the colour
of the point you want
checkout the BitMap class in the docs
hth
guy
"pcnerd" wrote: I want to create a program that will do graphics like math functions & fractals & stuff. I've been browsing thru books at the bookstores. Apparently, the Point object replaced Pset. The books explain how to create a Point object, but not how to use it. I want to be able to plot individual pixels. I tried DrawEllipse, but that just draws circles. I reckon that I have to somehow use the Pen & the Point object. I don't want to draw lines. I want to be able to plot individual pixels, not circles or ellipses or lines or boxes. Do I have to create a class & use the object to plot the pixels? So, how do I use the Point object to plot individual pixels? Thank you. David
I tried using DrawEllipse. It draws circles. When I set the height & width
to one pixel, the program draws little boxes.As I previously stated , I don't
want to draw lines or circles or boxes. I want to plot INDIVIDUAL pixels.
Thank you.
"GhostInAK" wrote: Hello pcnerd,
Point does not replace PSet. Point is a coordinate, not a pixel. Two Points make a line-segment. 4 Points make a rectangle.. etc.
Look at the Graphics object for drawing functions. You may have to resort to drawing a rectangle with a width and height of 1.
-Boo
I want to create a program that will do graphics like math functions & fractals & stuff. I've been browsing thru books at the bookstores. Apparently, the Point object replaced Pset. The books explain how to create a Point object, but not how to use it. I want to be able to plot individual pixels. I tried DrawEllipse, but that just draws circles. I reckon that I have to somehow use the Pen & the Point object. I don't want to draw lines. I want to be able to plot individual pixels, not circles or ellipses or lines or boxes. Do I have to create a class & use the object to plot the pixels? So, how do I use the Point object to plot individual pixels? Thank you. David
OK, can you be more specific? Is the bitmap created in the background in
memory & then displayed? So, for example, if I wanted to display a fractal,
the fractal would be created as a bitmap & then displayed? Is that correct?
Thank you.
David
"guy" wrote: try creating a bitmap, you can then use the SetPixel method to set the colour of the point you want
checkout the BitMap class in the docs
hth
guy
"pcnerd" wrote:
I want to create a program that will do graphics like math functions & fractals & stuff. I've been browsing thru books at the bookstores. Apparently, the Point object replaced Pset. The books explain how to create a Point object, but not how to use it. I want to be able to plot individual pixels. I tried DrawEllipse, but that just draws circles. I reckon that I have to somehow use the Pen & the Point object. I don't want to draw lines. I want to be able to plot individual pixels, not circles or ellipses or lines or boxes. Do I have to create a class & use the object to plot the pixels? So, how do I use the Point object to plot individual pixels? Thank you. David
put a picurebox on your form
create a bitmap in code
set the picureboxes image property to your bitmap
so in your case instantiate a bitmap and
use your fractal algorithm to draw on the bitmap
look at the docs for the bitmap class
hth
guy
"pcnerd" wrote: OK, can you be more specific? Is the bitmap created in the background in memory & then displayed? So, for example, if I wanted to display a fractal, the fractal would be created as a bitmap & then displayed? Is that correct?
Thank you. David
"guy" wrote:
try creating a bitmap, you can then use the SetPixel method to set the colour of the point you want
checkout the BitMap class in the docs
hth
guy
"pcnerd" wrote:
I want to create a program that will do graphics like math functions & fractals & stuff. I've been browsing thru books at the bookstores. Apparently, the Point object replaced Pset. The books explain how to create a Point object, but not how to use it. I want to be able to plot individual pixels. I tried DrawEllipse, but that just draws circles. I reckon that I have to somehow use the Pen & the Point object. I don't want to draw lines. I want to be able to plot individual pixels, not circles or ellipses or lines or boxes. Do I have to create a class & use the object to plot the pixels? So, how do I use the Point object to plot individual pixels? Thank you. David
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Nashat Wanly |
last post by:
HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and
Visual C# .NET
View products that this article applies to.
This article was previously published under Q310070
For a Microsoft...
|
by: Daniel |
last post by:
Hello =)
I have an object which contains a method that should execute every x ms. I
can use setInterval inside the object construct like this -
self.setInterval('ObjectName.methodName()',...
|
by: Saeed Amrollahi |
last post by:
Dear All C++ Programmers
Hello
I am Saeed Amrollahi. I am a software engineer in
Tehran Sewerage Company. I try to use std::map and map::find member
function. I
use Visual Studio .NET. my...
|
by: Stumped and Confused |
last post by:
Hello,
I really, really, need some help here - I've spent hours trying to find a
solution.
In a nutshell, I'm trying to have a user input a value in form's
textfield. The value should then be...
|
by: Todd Schinell |
last post by:
Back in July, Jeffery Tan posted this:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=OWOTdf0VDHA.2296%40cpmsftngxa06.phx.gbl
In response as to how to get click events from a...
|
by: Rob |
last post by:
Hi all,
I am having trouble converting the code below (found on
http://vbnet.mvps.org/index.html?code/core/sendmessage.htm) into a
format that will work using vb .NET.
Can anyone have a look...
|
by: Peter Row |
last post by:
Hi,
I've started work on my own control some parts of which use standard
controls, others I need to draw on my controls surface to get the display
output I require, however....
I seem to be...
|
by: Peter Hallett |
last post by:
I would like to set up a string array as a class member, or field, and then
populate this array by reading in from a text file, but I cannot find the
appropriate syntax. The getter and setter are...
|
by: Arjen |
last post by:
Hi,
Form a performance perspective, is it wise to use the ref statement as much
as possible?
Thanks!
Arjen
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
| |