コード例 #1
0
        public bool VerifyPart(string partName)
        {
            TMScreens tmScreens = new TMScreens();

            TMPart part = tmScreens.GetPart(partName);

            Bitmap bitmap = GetScreenPart(part.Position.Top, part.Position.Left, part.Position.Width, part.Position.Height);

            return(tmScreens.CompareImages(part, bitmap));
        }
コード例 #2
0
        public bool VerifyPart(TMScreens tmScreens, TMPart part)
        {
            Bitmap bitmap = GetScreenPart(part.Position.Top, part.Position.Left, part.Position.Width, part.Position.Height);

            return(tmScreens.CompareImages(part, bitmap));
        }