How to compare image in a WinForms PictureBox to resource?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2017
02:02 AM
12-02-2017
02:02 AM
How to compare image in a WinForms PictureBox to resource?
Hello,
an older application in our company often uses PictureBoxes to display small status images (like cross or check).
To check these in our test cases, we would have to somehow compare the image from the DLLs resources with the image displayed in the PictureBox.
We tried to use the following code to get the image which gives us a invalid cast:
pictureBox.GetProperty<System.Drawing.Image>("Image");
Unfortunately the image class does not have a Source-Property or anything worth comparing to the resources.
Does anyone have a good idea?
Best,
Toby
0 REPLIES 0
