private Point?GetFramePoint(Bitmap bmp, int dataframe, int startX) { for (int x = startX; x < bmp.Width; x++) { for (int y = 0; y < 2; y++) { var point = new Point(x, y); if (colorReader.GetColorAt(point, bmp).B == dataframe) { return(point); } } } return(null); }
public void Refresh() { try { using (var bitMap = WowScreen.GetAddonBitmap(this.width, this.height)) { frames.ForEach(frame => FrameColor[frame.index] = colorReader.GetColorAt(frame.point, bitMap)); } if (PlayerReader != null) { PlayerReader.Updated(); } } catch (Exception ex) { logger.LogInformation(ex.Message); } }