{"id":20548574,"url":"https://github.com/smilyorg/hxlode","last_synced_at":"2025-04-14T10:53:15.560Z","repository":{"id":75930273,"uuid":"10066163","full_name":"SmilyOrg/hxlode","owner":"SmilyOrg","description":"PNG image decoder haxelib for neko/cpp using LodePNG / PicoPNG","archived":false,"fork":false,"pushed_at":"2013-12-26T04:20:29.000Z","size":399,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-07-31T22:58:00.116Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SmilyOrg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-14T22:19:34.000Z","updated_at":"2023-08-18T01:19:36.000Z","dependencies_parsed_at":"2023-02-23T01:10:34.384Z","dependency_job_id":null,"html_url":"https://github.com/SmilyOrg/hxlode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmilyOrg%2Fhxlode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmilyOrg%2Fhxlode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmilyOrg%2Fhxlode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmilyOrg%2Fhxlode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SmilyOrg","download_url":"https://codeload.github.com/SmilyOrg/hxlode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248868775,"owners_count":21174756,"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":[],"created_at":"2024-11-16T02:13:55.202Z","updated_at":"2025-04-14T10:53:15.536Z","avatar_url":"https://github.com/SmilyOrg.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"hxlode\n======\n\nPNG image decoder haxelib for neko/cpp using LodePNG / PicoPNG.\n\nOfficial binaries provided for Windows. Binaries for Mac / Mac64 by [Alex Koz](https://github.com/fzzrr). Binaries for Linux / Linux64 by [zaynyatyi](https://github.com/zaynyatyi).\n\n\nUsage\n-----\n\nDecode PNG directly from a file\n```haxe\nvar img:Image = PicoPNG.loadFile(\"hello.png\");\n```\n\nDecode PNG from BytesData\n```haxe\nvar file = File.read(\"hello.png\");\nvar fileBytes = file.readAll();\nvar img:Image = PicoPNG.decodePNG(fileBytes.getData(), fileBytes.length);\n```\n\nUsing the returned image data\n```haxe\nvar bytes = Bytes.ofData(img.data);\nvar width = img.width;\nvar height = img.height;\n\nlog('Processing $path | $width x $height | '+bytes.length+\" bytes\");\nlog(\"First RGBA pixel: \"+bytes.get(0)+\" \"+bytes.get(1)+\" \"+bytes.get(2)+\" \"+bytes.get(3));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmilyorg%2Fhxlode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmilyorg%2Fhxlode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmilyorg%2Fhxlode/lists"}