{"id":18664662,"url":"https://github.com/scionoftech/convertviewtoimage","last_synced_at":"2025-10-14T07:07:32.043Z","repository":{"id":101410230,"uuid":"69435593","full_name":"scionoftech/ConvertViewtoImage","owner":"scionoftech","description":"Convert layout to bitmap image.","archived":false,"fork":false,"pushed_at":"2016-09-28T17:20:49.000Z","size":16878,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-18T05:13:46.868Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scionoftech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2016-09-28T07:04:43.000Z","updated_at":"2016-09-28T17:20:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"b4885de7-28c5-41a7-82dc-0c7493e3ef6e","html_url":"https://github.com/scionoftech/ConvertViewtoImage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scionoftech/ConvertViewtoImage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scionoftech%2FConvertViewtoImage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scionoftech%2FConvertViewtoImage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scionoftech%2FConvertViewtoImage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scionoftech%2FConvertViewtoImage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scionoftech","download_url":"https://codeload.github.com/scionoftech/ConvertViewtoImage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scionoftech%2FConvertViewtoImage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018206,"owners_count":26086303,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-07T08:24:25.640Z","updated_at":"2025-10-14T07:07:32.016Z","avatar_url":"https://github.com/scionoftech.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"#ConvertViewtoImage\n\nConvert layout to bitmap image.\n\n  ```java\n\n        view.setDrawingCacheEnabled(true);\n        // this is the important code :)\n        // Without it the view will have a dimension of 0,0 and the bitmap will be null\n\n        view.measure(View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED),\n                View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED));\n\n        view.layout(0, 0, view.getMeasuredWidth(), view.getMeasuredHeight());\n\n        view.buildDrawingCache(true);\n        Bitmap b = Bitmap.createBitmap(view.getDrawingCache());\n        view.setDrawingCacheEnabled(false); // clear drawing cache\n\n  ```\n## License\n\n  [MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscionoftech%2Fconvertviewtoimage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscionoftech%2Fconvertviewtoimage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscionoftech%2Fconvertviewtoimage/lists"}