Re: Drawing floating-point lines with Bresenham



Cool. I don't know if this is a personal project or not. But you can
easilly achieve greyscale (still) with a black and white device if you
modulate the way you render the pages. aka: If you constantly flip
between 2 screens, you can achieve 4 colors (black, white, light gray,
dark gray). Essentially, it goes by saying that if the pixel is lit
all half the time, you can achieve a (half black/half white) pixel
which is gray. if the pixel is on 75% of the time, you can achieve a
darker version of it and etc.

Anyhow I digress, I would suggest using fixed points. It sounds like
you found an answer to your question either way.



On Jul 16, 6:29 am, Thomas Kindler <mail+n...@xxxxxxxxxxxx> wrote:
ti_chris wrote:

Hi Chris!

I'm not sure what you are using this for.

It's a graphics library for a small embedded controller with a 128x64
LCD (black & white only, no grayscales).

But chances are, you want an antialised lines in which case this

 > algorithm is not ideal for [..]

No. I do not want antialiasing. I'd like to draw Bresenham lines, but
with floating-point endpoints.

(This really matters if you try to draw animated 3d graphics, which look
jerky if you round the endpoints before drawing the lines).

--
"Zuse, Zuse" sprach die Tante, als das Rechenzimmer brannte.

.



Relevant Pages

  • Re: need a simple image builder
    ... I just wanted the image with grays as pixel values. ... There is a plain ascii format of pgm, ... The gray values can be given also one in a line, ... had no problems with a one column plain pgm, ...
    (sci.image.processing)
  • Re: need a simple image builder
    ... the following records are the pixels in this format ... I just wanted the image with grays as pixel values. ... The gray values can be given also one in a line, ... had no problems with a one column plain pgm, ...
    (sci.image.processing)
  • =?windows-1252?Q?Re=3A_Can_gray_image=92_pixel_value_be_negative=3F?=
    ... now I wonder could a gray image’ pixel value be negative? ... Could you give some explanation? ... Thank you for your attention! ...
    (sci.image.processing)
  • Re: How do I add colorize a black & white image?
    ... you need to determine what format your gray image is in. ... The BitmapData ... create a pixel in your empty Bitmap with the same amount of whatever ... color you want to set as a hue. ...
    (microsoft.public.dotnet.languages.csharp)