ARKBreedingStats.ArkOCR.setResolution(System.Drawing.Bitmap)

Here are the examples of the csharp api class ARKBreedingStats.ArkOCR.setResolution(System.Drawing.Bitmap) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

1. Example

Project: ARKStatsExtractor
Source File: ArkOCR.cs
public bool setResolution()
        {
            return setResolution(Win32Stuff.GetSreenshotOfProcess(screenCaptureApplicationName, waitBeforeScreenCapture));
        }

2. Example

Project: ARKStatsExtractor
Source File: ArkOCR.cs
public bool isDinoInventoryVisible()
        {
            if (ScreenCaptureProcess == null)
            {
                Process[] p = Process.GetProcessesByName(screenCaptureApplicationName);
                if (p.Length > 0)
                    ScreenCaptureProcess = p[0];
                else return false;
            }

            float[] finalValues = new float[1] { 0 };

            Bitmap screenshotbmp = null;// = (Bitmap)Bitmap.FromFile(@"D:\ScreenshotsArk\Clipboard12.png");

            if (Win32Stuff.GetForegroundWindow() != ScreenCaptureProcess.MainWindowHandle)
                return false;

            screenshotbmp = Win32Stuff.GetSreenshotOfProcess(screenCaptureApplicationName, waitBeforeScreenCapture);

            if (screenshotbmp == null)
                return false;
            if (!setResolution(screenshotbmp))
                return false;

            string statName = "Level";
            Rectangle rec = ocrConfig.labelRectangles[ocrConfig.labelNameIndices[statName]];
            Bitmap testbmp = SubImage(screenshotbmp, rec.X, rec.Y, rec.Width, rec.Height);
            string statOCR = readImage(testbmp, true, true);

            Regex r = new Regex(@":\d+$");
            MatchCollection mc = r.Matches(statOCR);

            if (mc.Count != 0)
                return true;

            return false;
        }

3. Example

Project: ARKStatsExtractor
Source File: ArkOCR.cs
public float[] doOCR(out string OCRText, out string dinoName, out string species, out string ownerNa/n ..... /n //View Source file for more details /n }