Convert a C++/C# example to C (draws a 32bit RGB image)
$30-250 USD
Pago na entrega
Hello! I need you to convert an existing C++ (or it might be C#?) example code to C.
It's fairly straightforward and I'm probably about to overexplain it, but better than not enough detail!
All it does is generate an image - the image is of a circle, colored with the HSL (Hue/Saturation/Luminance) color space.
You can see THE IMAGE IT CREATES here:
[login to view URL]
(The Hue value is across all 360 degrees to show all colors, the Luminance value goes from 255=white in the middle to 0=black on the outside/rim, and Saturation is fixed but variable - set at 100% in that image).
The SOURCE CODE is attached as a .txt file, and also here:
[login to view URL]
I'm not necessarily after an exact translation, just the functionality - all I need from you is a .c file that i can compile to a lib with gcc to call one function, basically something like this:
int RenderImage(*imagebuffer32, int width, int height, float saturation) // 1=Success
*imagebuffer32 is the address of the image buffer to draw on - supplied by the caller who creates the image.
The image is always 32bit, so there's no need to cater for 24bit or end-of-row padding (and this makes it easier and more efficient to quickly write 32bit RGBA values).
Saturation is 0.0 to 1.0 (it's 1.0 in the previous example image).
Width and height will always be the same (it will always be a perfect square), best size is probably 512x512.
ID do Projeto: #13432915
Sobre o projeto
10 freelancers estão ofertando em média $166 nesse trabalho
Dear client, how are you? I am a C/C++ programmer and mathematician. Checked your C# code carefully. What do you want clear? I think the pure C code is difficult for this task. If you want converting C# into C++, Mais
Hello, I love C and C++ since more than 20 years ago ... I should be a good option. Please, let me know if the output should be generated in a .bmp file? or on screen.?. Best regards!
Hi, I am professional freelancer and student of theoretic informatics, I have several experience with C++/C# and C programming also I am experienced in graphics. I can start the development right now and deliver the pr Mais
Hi, It would be a pleasure if you accept me to do this job. I have drawn shapes using C language before, so it would be easy to draw images. I can deliver you a clean code. I can make the .c file with functions so t Mais
Hello. Im a novice freelancer. I looked yor code and picture. Your code is c#. I can do it for a three days.