qasmi
Member level 3
iam working on a digital image processing project and have to design filters in MATLAB, MAKE A COM OBJECT THROUGH DLL AND THEN CALL IT IN C#
>i have created a dll. using MATLAB COM Builder, but i
>got the following errors when i call the class methods
>
>#using MODIESTDll;
>public void to_grayscale()
>{
>MODIESTDll.ImgManiFiltrsClsClass neg = new
>MODIESTDll.ImgManiFiltrsClsClass();
>this.m_Bitmap = neg.negative(1,ref
>m_tempBitmap,m_Bitmap);
>}
>
>1. The best overloaded method match for
>'MODIESTDll.ImgManiFiltrsClsClass.negative(int, ref
>object, object)' has some invalid arguments
>2. Argument '2': cannot convert from 'ref
>System.Drawing.Bitmap' to 'ref object'
>
>please help me how to pass a bitmap and return a
>bitmap too, what is this 1st and second "object"
>argument, and do tell me if the attached fuction files
>are okey
>
>waiting for an urgent reply
>HAROON, FROM NUML, ISB, PK
>i have created a dll. using MATLAB COM Builder, but i
>got the following errors when i call the class methods
>
>#using MODIESTDll;
>public void to_grayscale()
>{
>MODIESTDll.ImgManiFiltrsClsClass neg = new
>MODIESTDll.ImgManiFiltrsClsClass();
>this.m_Bitmap = neg.negative(1,ref
>m_tempBitmap,m_Bitmap);
>}
>
>1. The best overloaded method match for
>'MODIESTDll.ImgManiFiltrsClsClass.negative(int, ref
>object, object)' has some invalid arguments
>2. Argument '2': cannot convert from 'ref
>System.Drawing.Bitmap' to 'ref object'
>
>please help me how to pass a bitmap and return a
>bitmap too, what is this 1st and second "object"
>argument, and do tell me if the attached fuction files
>are okey
>
>waiting for an urgent reply
>HAROON, FROM NUML, ISB, PK