Re: Polygon Rendering Speed

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Olaf,

An interesting proposition, but the polygons are not necessarily regular. If
indeed filling the RGB array of a DIB section is faster, I'm not sure on the
math required to locate all the pixels in such an array when I only know the
4 points (which are essentially arbitrary).

Evan

...Data consists of 4 sided polygons, of which a single bitmap
could contain around 140,000 polygons that average about
2x2 pixels in size.
...on the other side - the size of your Polygons seems very small
with only 2x2Pixels on average - I mean these are only 4 Pixels
to set.
Why not work on a DIBSection-mapped VB-Array and set
the Color-Values of those ca. 4 pixels in the Array directly
(at least for all the smaller Polygons)?

This could speed up your Polygon-Rendering by Factor 10 or so.

Olaf




.



Relevant Pages

  • Re: Saving PointF data in MSAccess
    ... How about using a binarywriter to write the values to a memorystream, get the byte array from the stream and use the Convert.ToBase64String method to turn it into a string? ... If I store the Points array for each GraphicsPath I can then reproduce filled polygons at run time. ... The only way I can think of doing this is by saving the points as a string in a Memo field; looping through all the points in the Array and using GetValue to add the points to the string e.g.: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: two dimensional arrays:
    ... > I'm trying to use an C API which is for geometry calculations. ... > requires an argument for an array of polygons: ... > coordpt **polygons ... Check out the following code for building a 2 dimensional array: ...
    (comp.lang.c)
  • object.to_yaml works but [ object ].to_yaml fails
    ... Area Description: Deltana, Tanana Flats ... Polygons: ... However when I put the object in an array I get the following error ...
    (comp.lang.ruby)
  • Re: Saving PointF data in MSAccess
    ... I can see how the image data is converted into the Byte Array ... this case) filled polygons at run time. ... The only way I can think of doing this is by saving the points as a string ... in a Memo field; looping through all the points in the Array and using ...
    (microsoft.public.dotnet.languages.vb)
  • Re: CImages bitmap array
    ... get its bitmap array or vector ... - not display the image (to avoid collecting/setting the pixels values ... At this moment I use CImage instance to modify some colors using the ...
    (microsoft.public.vc.mfc)