Click here to Skip to main content
14,492,569 members
   

C#

 
QuestionHow do i get value from string textBox in C# Pin
Software Solution Industries (SSI)2-Feb-20 15:12
MemberSoftware Solution Industries (SSI)2-Feb-20 15:12 
AnswerRe: How do i get value from string textBox in C# Pin
Atlaskor2-Feb-20 17:11
MemberAtlaskor2-Feb-20 17:11 
GeneralRe: How do i get value from string textBox in C# Pin
Charmain Bush26-Feb-20 20:06
MemberCharmain 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
MemberAtlaskor2-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
MemberAtlaskor3-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
MemberAtlaskor3-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
MemberAtlaskor3-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 
GeneralRe: Searching for a bitmap on my screen Pin
Atlaskor3-Feb-20 5:21
MemberAtlaskor3-Feb-20 5:21 
QuestionHow to read specific field value when using LINQ to object to fetch data Pin
Mou_kol31-Jan-20 10:05
MemberMou_kol31-Jan-20 10:05 
AnswerRe: How to read specific field value when using LINQ to object to fetch data Pin
ZurdoDev31-Jan-20 10:47
mveZurdoDev31-Jan-20 10:47 
AnswerRe: How to read specific field value when using LINQ to object to fetch data Pin
Gerry Schmitz31-Jan-20 10:49
mveGerry Schmitz31-Jan-20 10:49 
AnswerRe: How to read specific field value when using LINQ to object to fetch data Pin
Eddy Vluggen31-Jan-20 11:05
professionalEddy Vluggen31-Jan-20 11:05 
QuestionHow to make a "dungeon"(kinda of a small labyrinth) using devc and matrix Pin
Member 1472865028-Jan-20 19:44
MemberMember 1472865028-Jan-20 19:44 
AnswerRe: How to make a "dungeon"(kinda of a small labyrinth) using devc and matrix Pin
OriginalGriff28-Jan-20 20:12
mveOriginalGriff28-Jan-20 20:12 
QuestionRe: How to make a "dungeon"(kinda of a small labyrinth) using devc and matrix Pin
ZurdoDev31-Jan-20 10:48
mveZurdoDev31-Jan-20 10:48 
QuestionFileSystemWatcher Question Pin
Kevin Marois28-Jan-20 6:07
professionalKevin Marois28-Jan-20 6:07 
AnswerRe: FileSystemWatcher Question Pin
Eddy Vluggen28-Jan-20 7:21
professionalEddy Vluggen28-Jan-20 7:21 
AnswerRe: FileSystemWatcher Question Pin
Gerry Schmitz28-Jan-20 7:57
mveGerry Schmitz28-Jan-20 7:57 

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.