Article View: comp.sys.mac
Article #14574How to plot a single pixel ?
From: jccf
Date: Mon, 26 Jan 1987 09:28
Date: Mon, 26 Jan 1987 09:28
29 lines
1515 bytes
1515 bytes
*** REPLACE THIS LINE WITH YOUR FRUSTRATION ***
At the moment I am writing an application for plotting complex functions on
the mac screen. (Mandelbrot functions, 320x320 pixels, language is Megamax C).
Two problems I ran in at the moment;
1) How to plot a single pixel. I couldn't find a routine in IM like
plotpixel(h,v);
and the current sollution
moveto(h,v);
lineto(h,v);
( pensize = 1,1 ) is too timeconsuming.
2) How to save the bit image in a clean fast way, since a rect (in which I am
drawing) only consist of 4 integers specifying the boundaries of the
rectangle.
Also related to this problem, how do I update the window or rect after
another window (e.g. a DA) has been writen over the figure, and then
this frontmost window is closed, so the figure has to reapear again.
I have seen there's a routine teupdate(), but is the also something like
grafupdate() or rectupdate().
e-mail or post any help,
Thanks in advance.
Piter Jonker, Hilversum, Holland
ihnp4!ihlpg!hvlpa!pjonker
Technical Details
Message-ID:
<2779@ihlpg.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbatt!ihnp4!ihlpg!jccfShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbatt!ihnp4!ihlpg!jccf From: jccf@ihlpg.UUCP Newsgroups: comp.sys.mac Subject: How to plot a single pixel ? Message-ID: <2779@ihlpg.UUCP> Date: Mon, 26-Jan-87 04:28:51 EST Article-I.D.: ihlpg.2779 Posted: Mon Jan 26 04:28:51 1987 Date-Received: Tue, 27-Jan-87 02:58:03 EST Distribution: net Organization: AT&T Bell Labs, Naperville, IL Lines: 28