Click here to Skip to main content
15,915,703 members
Home / Discussions / C#
   

C#

 
GeneralRe: Error: "No exports were found that match the constraint" Pin
Gerry Schmitz4-Feb-20 2:53
mveGerry Schmitz4-Feb-20 2:53 
GeneralRe: Error: "No exports were found that match the constraint" Pin
Kevin Marois5-Feb-20 6:05
professionalKevin Marois5-Feb-20 6:05 
GeneralRe: Error: "No exports were found that match the constraint" Pin
Eddy Vluggen4-Feb-20 3:48
professionalEddy Vluggen4-Feb-20 3:48 
GeneralRe: Error: "No exports were found that match the constraint" Pin
Kevin Marois5-Feb-20 6:20
professionalKevin Marois5-Feb-20 6:20 
GeneralRe: Error: "No exports were found that match the constraint" Pin
Eddy Vluggen5-Feb-20 6:36
professionalEddy Vluggen5-Feb-20 6:36 
General[RESOLVED] Re: Error: "No exports were found that match the constraint" Pin
Kevin Marois5-Feb-20 6:54
professionalKevin Marois5-Feb-20 6:54 
GeneralRe: [RESOLVED] Re: Error: "No exports were found that match the constraint" Pin
Eddy Vluggen5-Feb-20 7:10
professionalEddy Vluggen5-Feb-20 7:10 
AnswerRe: Error: "No exports were found that match the constraint" Pin
Pete O'Hanlon3-Feb-20 21:24
mvePete O'Hanlon3-Feb-20 21:24 
GeneralRe: Error: "No exports were found that match the constraint" Pin
Kevin Marois5-Feb-20 6:09
professionalKevin Marois5-Feb-20 6:09 
GeneralRe: Error: "No exports were found that match the constraint" Pin
Pete O'Hanlon5-Feb-20 8:43
mvePete O'Hanlon5-Feb-20 8:43 
AnswerRe: Error: "No exports were found that match the constraint" Pin
Richard Deeming5-Feb-20 6:44
mveRichard Deeming5-Feb-20 6:44 
QuestionHow do i get value from string textBox in C# Pin
SSI132-Feb-20 15:12
SSI132-Feb-20 15:12 
AnswerRe: How do i get value from string textBox in C# Pin
Atlaskor2-Feb-20 17:11
Atlaskor2-Feb-20 17:11 
GeneralRe: How do i get value from string textBox in C# Pin
Charmain Bush26-Feb-20 20:06
Charmain Bush26-Feb-20 20:06 
AnswerRe: How do i get value from string textBox in C# Pin
OriginalGriff2-Feb-20 19:35
mveOriginalGriff2-Feb-20 19:35 
AnswerRe: How do i get value from string textBox in C# Pin
Gerry Schmitz3-Feb-20 4:19
mveGerry Schmitz3-Feb-20 4:19 
QuestionSearching for a bitmap on my screen Pin
Atlaskor2-Feb-20 13:35
Atlaskor2-Feb-20 13:35 
AnswerRe: Searching for a bitmap on my screen Pin
Eddy Vluggen3-Feb-20 2:57
professionalEddy Vluggen3-Feb-20 2:57 
GeneralRe: Searching for a bitmap on my screen Pin
Atlaskor3-Feb-20 5:08
Atlaskor3-Feb-20 5:08 
Just plain brilliant, i didn't think of that! I'll have an attempt at that today. Thank you for the direction!

I'll try something like this and pray that it does what id'e like.

static void Main()
    {
        Bitmap img1 = new Bitmap("Lenna50.jpg");
        Bitmap img2 = new Bitmap("Lenna100.jpg");
 
        if (img1.Size != img2.Size)
        {
            Console.Error.WriteLine("Images are of different sizes");
            return;
        }
 
        float diff = 0;
 
        for (int y = 0; y < img1.Height; y++)
        {
            for (int x = 0; x < img1.Width; x++)
            {
                Color pixel1 = img1.GetPixel(x, y);
                Color pixel2 = img2.GetPixel(x, y);
 
                diff += Math.Abs(pixel1.R - pixel2.R);
                diff += Math.Abs(pixel1.G - pixel2.G);
                diff += Math.Abs(pixel1.B - pixel2.B);
            }
        }


I found this chunk of code online, and i believe that it would get the job done with some nasty fiddling. I would need to actually break this down and throw it into the search of my screen right?

modified 3-Feb-20 11:20am.

GeneralRe: Searching for a bitmap on my screen Pin
Eddy Vluggen3-Feb-20 6:26
professionalEddy Vluggen3-Feb-20 6:26 
GeneralRe: Searching for a bitmap on my screen Pin
Atlaskor3-Feb-20 8:24
Atlaskor3-Feb-20 8:24 
GeneralRe: Searching for a bitmap on my screen Pin
Eddy Vluggen3-Feb-20 9:07
professionalEddy Vluggen3-Feb-20 9:07 
GeneralRe: Searching for a bitmap on my screen Pin
Atlaskor3-Feb-20 9:11
Atlaskor3-Feb-20 9:11 
GeneralRe: Searching for a bitmap on my screen Pin
Eddy Vluggen3-Feb-20 10:25
professionalEddy Vluggen3-Feb-20 10:25 
AnswerRe: Searching for a bitmap on my screen Pin
Gerry Schmitz3-Feb-20 4:11
mveGerry Schmitz3-Feb-20 4:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.