C++ for experts help please!
Posted on 2003-11-30
I need to convert an algorithm into a bitmap image. This is the same as a surface graph from 90 elevation and 0 rotation. I run a program in VB that looks like this:
Dim a, b as Long
Surface.Elevation = 90
Surface.Rotation = 0
For a = 0 to 999
For b = 0 to 100
FunctionNeededPopulateSurface a, b
I populate a graphing component with this code. I then have to export the .bmp from the component. I would like to bypass the graphing component and build the .bmp directly. This is 100,000 datapoints that I am calculating here. The bmp is used in a "stretch environment". It takes about 15 seconds to get the output on my machine. I would like to build a C++ DLL library that I can reference and call a function once and have it do the math and create the .bmp for me. I think this should drastically cut some time.
Any ideas on how to accomplish this? Can I get away with only one pixel per datapoint?