C# Quick PictureBox image and Resource image comparsion -


i've been dealing problem way long. wanted compare, if picturebox has same image 1 in resources, naturally went this;

if(picturebox1.image==properties.resources.image1) {     console.writeline("hello!"): } 

but didn't work. so, tried differently;

if(picturebox1.image.equals(properties.resources.image1)) 

that didn't work. tried bitmap;

bitmap temp = new bitmap(properties.resources.image1); if(temp==properties.resources.image1) 

it didn't work. searched internet (including stackoverflow) , answers 50 lines long. there really no simple way compare picturebox image resource image?!

in comment @idle_mind suggested using tags compare images, , seems easiest way it! again help!


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -