C++ DLL for C# GDI+

Job ID: 32890475

Budget: $30 – $250 USD

Hello,

I have a C++ windows application that does some graphics processing and I need to add a couple functions to it and convert it into a DLL which I can call from C#.

[Functions to Add]
1) public static List<Bitmap> GetCroppedImages(List<Rectangle>) {
a. should take copy of Window from WinAPI (I already have this part in the code)
b. Loop through List<Rectangle> and foreach, crop rectangle from image and add to List<Bitmap>

2) public static int GetColorPixelCount(Bitmap bmp, int RGBToCount, int Type) {
a. should receive a Bitmap an integer which represents a RGB total value in a pixel, an integer representing a Type, i.e. Equals, GreaterThan, LessThan
b. Loop through each pixel, foreach Pixel, add the RGB values, and if the RGB value in relation to RGBToCount is true according to the Type add 1 count, return total count.

3) public static List<int> GetRectangleValues(List<Rectangle>) {
a) should receive a list of rectangles, call GetCroppedImages(), foreach List<Bitmap> GetColorPixelCount and add to List<int>, return

[DLL for C#]
1) Currently the C++ application is a desktop application, need to extract necessary components and create a DLL

2) Need to configure the new DLL so that it can be called from C#

I'll need the source code when it's done. Let me know if you have any questions.
Related categories: .NET Software Architecture C++ Programming