{"action":"created","issue":{"url":"https://api.github.com/repos/Phreak87/LeptonicaSharp/issues/24","repository_url":"https://api.github.com/repos/Phreak87/LeptonicaSharp","labels_url":"https://api.github.com/repos/Phreak87/LeptonicaSharp/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/Phreak87/LeptonicaSharp/issues/24/comments","events_url":"https://api.github.com/repos/Phreak87/LeptonicaSharp/issues/24/events","html_url":"https://github.com/Phreak87/LeptonicaSharp/issues/24","id":365487542,"node_id":"MDU6SXNzdWUzNjU0ODc1NDI=","number":24,"title":"Bitonal Bitmap","user":{"login":"fdncred","id":343840,"node_id":"MDQ6VXNlcjM0Mzg0MA==","avatar_url":"https://avatars2.githubusercontent.com/u/343840?v=4","gravatar_id":"","url":"https://api.github.com/users/fdncred","html_url":"https://github.com/fdncred","followers_url":"https://api.github.com/users/fdncred/followers","following_url":"https://api.github.com/users/fdncred/following{/other_user}","gists_url":"https://api.github.com/users/fdncred/gists{/gist_id}","starred_url":"https://api.github.com/users/fdncred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdncred/subscriptions","organizations_url":"https://api.github.com/users/fdncred/orgs","repos_url":"https://api.github.com/users/fdncred/repos","events_url":"https://api.github.com/users/fdncred/events{/privacy}","received_events_url":"https://api.github.com/users/fdncred/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-01T14:26:55Z","updated_at":"2018-10-02T12:11:53Z","closed_at":"2018-10-02T10:20:59Z","author_association":"COLLABORATOR","body":"The ToBitmap() routine doesn't seem to work on 1-bpp bitonal images.\r\nAll of these bitmaps silently fail. The function does not throw an exception but the bitmaps it creates are invalid.\r\n```cs\r\nstatic void Main(string[] args)\r\n{\r\n    Natives.Initialize();\r\n    _AllFunctions.setLeptDebugOK(1);\r\n    var pix = new Pix(file6);\r\n    var b0 = pix.ToBitmap();\r\n    var pixa = _AllFunctions.pixaCreate(0);\r\n    _AllFunctions.pixGetRegionsBinary(pix, out Pix ppixhm, out Pix ppixtm, out Pix ppixtb, pixa);\r\n    var b1 = ppixhm.ToBitmap();\r\n    var b2 = ppixtm.ToBitmap();\r\n    var b3 = ppixtb.ToBitmap();\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Phreak87/LeptonicaSharp/issues/comments/426249910","html_url":"https://github.com/Phreak87/LeptonicaSharp/issues/24#issuecomment-426249910","issue_url":"https://api.github.com/repos/Phreak87/LeptonicaSharp/issues/24","id":426249910,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjI0OTkxMA==","user":{"login":"fdncred","id":343840,"node_id":"MDQ6VXNlcjM0Mzg0MA==","avatar_url":"https://avatars2.githubusercontent.com/u/343840?v=4","gravatar_id":"","url":"https://api.github.com/users/fdncred","html_url":"https://github.com/fdncred","followers_url":"https://api.github.com/users/fdncred/followers","following_url":"https://api.github.com/users/fdncred/following{/other_user}","gists_url":"https://api.github.com/users/fdncred/gists{/gist_id}","starred_url":"https://api.github.com/users/fdncred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdncred/subscriptions","organizations_url":"https://api.github.com/users/fdncred/orgs","repos_url":"https://api.github.com/users/fdncred/repos","events_url":"https://api.github.com/users/fdncred/events{/privacy}","received_events_url":"https://api.github.com/users/fdncred/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T12:11:53Z","updated_at":"2018-10-02T12:11:53Z","author_association":"COLLABORATOR","body":"I think it's a bad idea to convert 1-bpp to a higher bpp. People using this assembly will want to look at the data the way it is, not in a different format. We need a vb compatible version of what I already wrote in csharp. Just using marshalling instead of unsafe pointers."}}
{"actor":{"display_login":"fdncred"}}