{"id":17261319,"url":"https://github.com/aybe/b800","last_synced_at":"2025-03-26T10:10:23.889Z","repository":{"id":24528709,"uuid":"27934961","full_name":"aybe/B800","owner":"aybe","description":"Renders B800 text to a BGRA buffer.","archived":false,"fork":false,"pushed_at":"2014-12-12T19:56:01.000Z","size":496,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T11:23:15.589Z","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/aybe.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":"2014-12-12T19:31:19.000Z","updated_at":"2024-12-25T09:42:08.000Z","dependencies_parsed_at":"2022-08-23T00:31:27.047Z","dependency_job_id":null,"html_url":"https://github.com/aybe/B800","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/aybe%2FB800","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aybe%2FB800/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aybe%2FB800/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aybe%2FB800/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aybe","download_url":"https://codeload.github.com/aybe/B800/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245632423,"owners_count":20647193,"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-10-15T07:50:45.399Z","updated_at":"2025-03-26T10:10:23.869Z","avatar_url":"https://github.com/aybe.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"B800\n====\n\nRenders B800 text to a BGRA buffer.\n\n**Features**\n\n- support of arbitrary fonts\n- support of arbitrary column width\n- character expansion style like in VGA text mode\n\n**Showcase**\n\nClassic mode (un-expanded):\n\n![](https://raw.githubusercontent.com/aybe/B800/master/sample.png)\n\nExpanded mode:\n\n![](https://raw.githubusercontent.com/aybe/B800/master/sample_expanded.png)\n\n**Example**\n\nReading a text file and producing a bitmap out of it (WPF):\n\n```\nstring path = @\"Samples\\SAMPLE1.TXT\";\n\nbyte[] b800Data = File.ReadAllBytes(path);\nbool expand = true;\nint columns = 80;\nFont font = new Cp437Font16();\n\nTuple\u003cint, int, int[]\u003e render = B800Renderer.Render(font, b800Data, columns, expand);\nint pixelWidth = render.Item1;\nint pixelHeight = render.Item2;\nint[] pixels = render.Item3;\nBitmapSource source =\n    BitmapSource.Create(pixelWidth, pixelHeight, 96, 96, PixelFormats.Bgra32, null, pixels, pixelWidth*4);\n```\n**TODO**\n\n- implement the blink flag to produce an animation when content is animated\n\n**Credits**\n\n[Joseph Gil for the fonts.](http://ftp.sunet.se/pub/simtelnet/msdos/screen/fntcol16.zip)\n\n[Malvineous for the B800 text page.](http://www.shikadi.net/moddingwiki/B800_Text)\n\nAnd me for the code :D\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faybe%2Fb800","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faybe%2Fb800","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faybe%2Fb800/lists"}