INNER CODE UNIT · Rust
find_bitmap
autopilot-rs/autopilot-rs · src/bitmap.rs:202
pub fn find_bitmap(
&self,
needle: &Bitmap,
tolerance: Option<f64>,
rect: Option<Rect>,
start_point: Option<Point>,
) -> Option<Point> {
if self.is_needle_oversized(needle) {
return None;
}
self.find(rect, start_point, |pt| {
self.is_needle_at(pt, needle, tolerance)
})
}
/// Returns list of all coordinates inside `rect` in `bmp` matching
/// `needle` from the given `start_point`. If `rect` is `None`,