{"action":"created","issue":{"url":"https://api.github.com/repos/andlabs/ui/issues/100","labels_url":"https://api.github.com/repos/andlabs/ui/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/andlabs/ui/issues/100/comments","events_url":"https://api.github.com/repos/andlabs/ui/issues/100/events","html_url":"https://github.com/andlabs/ui/issues/100","id":95647298,"number":100,"title":"Displaying a single image ?","user":{"login":"Depado","id":694365,"avatar_url":"https://avatars.githubusercontent.com/u/694365?v=3","gravatar_id":"","url":"https://api.github.com/users/Depado","html_url":"https://github.com/Depado","followers_url":"https://api.github.com/users/Depado/followers","following_url":"https://api.github.com/users/Depado/following{/other_user}","gists_url":"https://api.github.com/users/Depado/gists{/gist_id}","starred_url":"https://api.github.com/users/Depado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Depado/subscriptions","organizations_url":"https://api.github.com/users/Depado/orgs","repos_url":"https://api.github.com/users/Depado/repos","events_url":"https://api.github.com/users/Depado/events{/privacy}","received_events_url":"https://api.github.com/users/Depado/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-17T12:26:49Z","updated_at":"2015-07-17T12:43:10Z","closed_at":"2015-07-17T12:43:10Z","body":"Hello,\r\n\r\nI'm trying to display a single image in my VerticalStack (an album cover).\r\nI used the technique used in the example widget gallery. (A table, with table.LoadImageList())\r\n\r\nI get this error : \r\n\r\n```\r\n*** BUG ***\r\nIn pixman_region32_init_rect: Invalid rectangle passed\r\nSet a breakpoint on '_pixman_log_error' to debug\r\n```\r\n\r\nIs this a known bug or did I do something wrong ? Here is how I convert my image to the *image.RGBA format : \r\n\r\n```go\r\ntype song struct {\r\n\ttitle  ui.Label\r\n\talbum  ui.Label\r\n\tartist ui.Label\r\n\tyear   ui.Label\r\n\tcover  ui.ImageList\r\n\tcovers []cover\r\n\tvstack ui.Control\r\n\tgstack ui.Grid\r\n\tapi    *songAPIType\r\n}\r\n\r\ntype cover struct {\r\n\ticon ui.ImageIndex\r\n}\r\n\r\nfunc (s *song) dlConvertCover() {\r\n\tvar url string\r\n\tvar err error\r\n\tvar src image.Image\r\n\tvar img *image.RGBA\r\n\ts.covers = make([]cover, 1)\r\n\r\n\turl = s.api.Visuel.Medium\r\n\tresp, err := http.Get(url)\r\n\tif err != nil {\r\n\t\tlog.Fatal(err)\r\n\t}\r\n\tdefer resp.Body.Close()\r\n\tsrc, _, err = image.Decode(resp.Body)\r\n\timg = image.NewRGBA(src.Bounds())\r\n\tdraw.Draw(img, img.Rect, src, image.ZP, draw.Src)\r\n\ts.cover = ui.NewImageList()\r\n\ts.cover.Append(img)\r\n\ts.covers[0].icon = ui.ImageIndex(0)\r\n\treturn\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/andlabs/ui/issues/comments/122262899","html_url":"https://github.com/andlabs/ui/issues/100#issuecomment-122262899","issue_url":"https://api.github.com/repos/andlabs/ui/issues/100","id":122262899,"user":{"login":"Depado","id":694365,"avatar_url":"https://avatars.githubusercontent.com/u/694365?v=3","gravatar_id":"","url":"https://api.github.com/users/Depado","html_url":"https://github.com/Depado","followers_url":"https://api.github.com/users/Depado/followers","following_url":"https://api.github.com/users/Depado/following{/other_user}","gists_url":"https://api.github.com/users/Depado/gists{/gist_id}","starred_url":"https://api.github.com/users/Depado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Depado/subscriptions","organizations_url":"https://api.github.com/users/Depado/orgs","repos_url":"https://api.github.com/users/Depado/repos","events_url":"https://api.github.com/users/Depado/events{/privacy}","received_events_url":"https://api.github.com/users/Depado/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T12:43:10Z","updated_at":"2015-07-17T12:43:10Z","body":"Nevermind I'm kind of stupid, there was no need to declare a table."}}