Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
How to deal with different form of input and output in one class
I want to build new class library where i need to make some calculation and the input of the calculation is in form bitmap image and return the output in form of value of number or characters. Then, I want to call the output from mainform.cs.
The problem is, i couldn't return the output because it is not same with the type of the input. I found that the cause of error is because of the type of parameter in the constructor is different with the return type. Here is example of my code:
public ScanFirstStage(Bitmap image, string resultScan)
I think there are something error regarding the parameter but i don't know what to do. Could any body help me pls.. Pls ask me if the question is not clear.
0 · ·