Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
error: cannot implicitly convert type'System.Drawing.Bitmap' to 'Sforge.imaging.imageStatistics'.

What I have tried:

imgStat = varas.RGBcrop;


OriginalPicBox.Image = varas.RGBcrop;


imgStat as a Aforge.imaging.image.imagestatistics
varas.RGBcrop as a System.Drawing.Bitmap
Posted
Updated 15-Dec-22 23:30pm
Comments
Richard MacCutchan 16-Dec-22 5:23am    
No, you need to write the code to do it.

1 solution

There is no cast defined to let you use a Bitmap as an imagestatistics class - and since they are completely unrelated classes to even start writing wone would be complicated as you would have to fully understand both classes in order to process the Bitmap and extract the statistics information from it.

This is particularly the case when Bitmap is a .NET class, and imagestatistics is a Java class and the two do not even share a common framework: ImageStatistics (ImageJ API)[^]

I have no idea why you think that would work: you can't even directly use Java classes in a .NET application, or vice versa
 
Share this answer
 
Comments

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900