{"id":16950547,"url":"https://github.com/vcaesar/bitmap","last_synced_at":"2025-04-11T20:42:00.858Z","repository":{"id":57648630,"uuid":"443611834","full_name":"vcaesar/bitmap","owner":"vcaesar","description":"Bitmap, robotgo bitmap function","archived":false,"fork":false,"pushed_at":"2025-03-10T18:31:40.000Z","size":575,"stargazers_count":3,"open_issues_count":4,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T16:51:21.440Z","etag":null,"topics":["bitmap","image","robotgo"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vcaesar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-01T19:47:07.000Z","updated_at":"2025-03-10T18:31:43.000Z","dependencies_parsed_at":"2024-08-16T19:59:01.460Z","dependency_job_id":"926e4f47-0a98-4593-8648-47ae8a047ec8","html_url":"https://github.com/vcaesar/bitmap","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcaesar%2Fbitmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcaesar%2Fbitmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcaesar%2Fbitmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcaesar%2Fbitmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vcaesar","download_url":"https://codeload.github.com/vcaesar/bitmap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248479035,"owners_count":21110810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitmap","image","robotgo"],"created_at":"2024-10-13T21:57:57.130Z","updated_at":"2025-04-11T20:42:00.828Z","avatar_url":"https://github.com/vcaesar.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bitmap\n\n## Use\n\n```Go\npackage main\n\nimport (\n  \"fmt\"\n\n  \"github.com/go-vgo/robotgo\"\n  \"github.com/vcaesar/bitmap\"\n)\n\nfunc main() {\n  bit := robotgo.CaptureScreen(10, 20, 30, 40)\n  // use `defer robotgo.FreeBitmap(bit)` to free the bitmap\n  defer robotgo.FreeBitmap(bit)\n\n  fmt.Println(\"bitmap...\", bit)\n  img := robotgo.ToImage(bit)\n  // robotgo.SavePng(img, \"test_1.png\")\n  robotgo.Save(img, \"test_1.png\")\n\n  bit2 := robotgo.ToCBitmap(robotgo.ImgToBitmap(img))\n  fx, fy := bitmap.Find(bit2)\n  fmt.Println(\"FindBitmap------ \", fx, fy)\n  robotgo.Move(fx, fy)\n\n  arr := bitmap.FindAll(bit2)\n  fmt.Println(\"Find all bitmap: \", arr)\n\n  fx, fy = bitmap.Find(bit)\n  fmt.Println(\"FindBitmap------ \", fx, fy)\n\n  bitmap.Save(bit, \"test.png\")\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvcaesar%2Fbitmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvcaesar%2Fbitmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvcaesar%2Fbitmap/lists"}