Here are the examples of the csharp api class System.Drawing.Bitmap.Resize() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
Project: BattleInfoPlugin
Source File: BrowserImageMonitor.cs
Source File: BrowserImageMonitor.cs
private void CheckImage() { if (!this.isInCombat) return; if (this.isConfirmPursuitNotified) return; var image = this.kanColleBrowser?.GetImage(); if (image == null) return; // ??? var browserImage = image.Resize().GetBitmapBytes(); var confirmPursuitImage = Resources.ConfirmPursuit.Resize().GetBitmapBytes(); var diff = browserImage.Zip(confirmPursuitImage, (a, b) => Math.Abs(a - b)).Average(); System.Diagnostics.Debug.WriteLine(diff); if (diff < 0.9) { // ??????????????????0.5????????? // ???????? 1.2 ???? this.ConfirmPursuit?.Invoke(); this.isConfirmPursuitNotified = true; } image.Dispose(); }