{"action":"opened","issue":{"url":"https://api.github.com/repos/JuliaGraphics/Colors.jl/issues/266","repository_url":"https://api.github.com/repos/JuliaGraphics/Colors.jl","labels_url":"https://api.github.com/repos/JuliaGraphics/Colors.jl/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/JuliaGraphics/Colors.jl/issues/266/comments","events_url":"https://api.github.com/repos/JuliaGraphics/Colors.jl/issues/266/events","html_url":"https://github.com/JuliaGraphics/Colors.jl/issues/266","id":199893115,"number":266,"title":"WARNING: convert(::Type{UInt32},c::ColorTypes.RGB24) is deprecated","user":{"login":"lobingera","id":5199059,"avatar_url":"https://avatars.githubusercontent.com/u/5199059?v=3","gravatar_id":"","url":"https://api.github.com/users/lobingera","html_url":"https://github.com/lobingera","followers_url":"https://api.github.com/users/lobingera/followers","following_url":"https://api.github.com/users/lobingera/following{/other_user}","gists_url":"https://api.github.com/users/lobingera/gists{/gist_id}","starred_url":"https://api.github.com/users/lobingera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lobingera/subscriptions","organizations_url":"https://api.github.com/users/lobingera/orgs","repos_url":"https://api.github.com/users/lobingera/repos","events_url":"https://api.github.com/users/lobingera/events{/privacy}","received_events_url":"https://api.github.com/users/lobingera/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-10T18:06:50Z","updated_at":"2017-01-10T18:06:50Z","closed_at":null,"body":"i'm using this:\r\n```\r\nz = zeros(UInt32,2,2)\r\nc1 = convert(RGB24,colorant\"grey20\")\r\nc2 = convert(RGB24,colorant\"grey80\")\r\nz[1,1] = c1\r\nz[1,2] = c2\r\nz[2,1] = c2\r\nz[2,2] = c1\r\n```\r\nto fill a small bitmap. This works, but gets the warning\r\n```\r\nWARNING: convert(::Type{UInt32},c::ColorTypes.RGB24) is deprecated, use reinterpret(UInt32,c) instead.\r\n in depwarn(::String, ::Symbol) at ./deprecated.jl:64\r\n in convert(::Type{UInt32}, ::ColorTypes.RGB24) at ./deprecated.jl:50\r\n in setindex!(::Array{UInt32,2}, ::ColorTypes.RGB24, ::Int64, ::Int64) at ./array.jl:416\r\n in include_from_node1(::String) at ./loading.jl:488\r\n in eval(::Module, ::Any) at ./boot.jl:234\r\n in eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:64\r\n in macro expansion at ./REPL.jl:95 [inlined]\r\n in (::Base.REPL.##3#4{Base.REPL.REPLBackend})() at ./event.jl:68\r\nwhile loading /home/lobi/juliarepo/colconv.jl, in expression starting on line 4\r\n```\r\nso line 4 is the assignment of the color(value) to UInt32.\r\nI could use\r\n```\r\nc1 = reinterpret(UInt32,convert(RGB24,colorant\"grey20\"))\r\n```\r\nbut i'm not sure...\r\nIs the correct reinterpretation is just missing from the convertions.jl ?\r\n"}}
{"actor":{"display_login":"lobingera"}}