Modify

Opened 12 years ago

Closed 11 years ago

#2882 closed Bug (Fixed)

AutoItX PixelChecksum Bug

Reported by: JohnOne Owned by: Jon
Milestone: 3.3.13.20 Component: AutoItX
Version: 3.3.12.0 Severity: None
Keywords: AutoItx PixelChecksum C# Cc:

Description

It does not work in C# (don't know about other OS') and returns 0 regardless of coordinates.

namespace AutoItXTest
{
    class Program
    {
        static void Main(string[] args)
        {
            Rectangle Rect = new Rectangle(10, 10, 10, 10);
            System.UInt32 cksm = AutoItX.PixelChecksum(Rect, 1);
            //uint cksm = AutoItX.PixelChecksum(Rect, 1);
            Debug.WriteLine("Checksum = " + cksm.ToString());
        }
    }
}

I suspect it is because the return value can be as large as uint64, and the function only accommodates a return of uint32.

Attachments (0)

Change History (1)

comment:1 by Jon, 11 years ago

Milestone: 3.3.13.20
Resolution: Fixed
Status: newclosed

Fixed by revision [11074] in version: 3.3.13.20

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.