I'm trying to send image to atl com dll. In C#,
System.Drawing.Imaging.BitmapData bmpdata =
bmp1.LockBits(new System.Drawing.Rectangle(0,0,bmp1.Width, bmp1.Height),
System.Drawing.Imaging.ImageLockMode.ReadWrite, bmp1.PixelFormat);
And get the bytearray of bitmapdata just like this,
bmpdata.Scan0;
How can i send this bitmap data in to ATL COM dll? i will create a opencv cv::mat inside com dll using incoming bytearray.
Thanks.