{"id":15036033,"url":"https://github.com/sulkmqul/clarity.image","last_synced_at":"2026-01-02T04:31:37.114Z","repository":{"id":222341453,"uuid":"756958465","full_name":"sulkmqul/Clarity.Image","owner":"sulkmqul","description":"APNG library for C# .net","archived":false,"fork":false,"pushed_at":"2024-06-15T21:18:33.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T12:14:48.647Z","etag":null,"topics":["apng","csharp","csharp-library"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sulkmqul.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":"2024-02-13T16:29:19.000Z","updated_at":"2024-06-15T21:18:03.000Z","dependencies_parsed_at":"2024-06-07T22:40:07.723Z","dependency_job_id":null,"html_url":"https://github.com/sulkmqul/Clarity.Image","commit_stats":null,"previous_names":["sulkmqul/clarity.image"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulkmqul%2FClarity.Image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulkmqul%2FClarity.Image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulkmqul%2FClarity.Image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulkmqul%2FClarity.Image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sulkmqul","download_url":"https://codeload.github.com/sulkmqul/Clarity.Image/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243401509,"owners_count":20285058,"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":["apng","csharp","csharp-library"],"created_at":"2024-09-24T20:29:57.843Z","updated_at":"2026-01-02T04:31:37.076Z","avatar_url":"https://github.com/sulkmqul.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clarity.Image\nAPNG and PNG library for C# .net.\n\nC#でapngを扱うライブラリおよび使用サンプルです。  \napngファイルを読み込み、フレームごとのRGBA形式のバッファを作成して保持します。  \nSystem.Drawing.Bitmapでも使用できるようにRGBA形式から相互変換関数も含めておきました。  \nRGBA形式が基準なので、ある程度は汎用的に利用できると思います。\n\napngの読み込みを書いていたら自然とpngの方も出来ちゃったので含めていますが、  \npngはおまけみたいなもんで、普通に.net標準の方使った方が便利だと思います。\n\n## Build\nC#  \nVisual Studio 2022  \n.Net6  \n[System.IO.Hashing-8.0.0](https://www.nuget.org/packages/System.IO.Hashing/8.0.0)\n\n## Supported image formats\n#### 読み込み\n- 8bit TrueColor \n- 8bit TrueColorWithAlpha\n- 8bit IndexedColor\n\n#### 書み込み\n- 8bit TrueColorWithAlpha\n\n\n## Usage\n### APNG\n#### Read\n```\nClarity.Image.PNG.APngFile ap = new Clarity.Image.PNG.APngFile();\nawait ap.Load(@\"anime.png\");\n```\n\n#### Write\n```\nList\u003cAPngFrame\u003e framelist = new List\u003cAPngFrame\u003e();\n//Set image size, delay time and rgba buffer to APngFrame \nAPngWriter aw = new APngWriter();\nawait aw.Save(\"save_anime.png\", framelist);\n```\n\n### PNG\n#### Read\n```\nClarity.Image.PNG.PngFile png = new Clarity.Image.PNG.PngFile();\nawit png.Load(@\"image.png\");\n```\n\n#### Write\n```\nClarity.Image.PNG.PngWriter pw = new Clarity.Image.PNG.PngWriter();\nawait pw.Save(@\"save.png\", png.Width, png.Height, png.Data);\n```\n\n\n詳しくはPngTest.Program.csを見てください。  \n\n\n\n#### \n## Author \nsulkmqul  \n\n\n\n## LICENSE\n[WTFPL](http://www.wtfpl.net/)  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsulkmqul%2Fclarity.image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsulkmqul%2Fclarity.image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsulkmqul%2Fclarity.image/lists"}