Bug #5753
closed
/background -f not filling correctly
Added by westor (GR) over 1 year ago.
Updated over 1 year ago.
Description
Hello,
It seems /background
does not filling the window correctly here.
Reproduce code :
alias bg_test {
var %w = @test_window
window -Bdk0j1000000 %w Consolas 12
var %f = $envvar(temp) $+ \black_bg.png
bset &f -1 137 80 78 71 13 10 26 10 0 0 0 13 73 72 68 82 0 0 0 1 0 0 0 1 8 2 0 0 0 144 119 83 222 0 0 0 1 115 82 71 66 0 174 206 28 233 0 0 0 4 103 65 77 65 0 0 177 $&
143 11 252 97 5 0 0 0 9 112 72 89 115 0 0 14 195 0 0 14 195 1 199 111 168 100 0 0 0 12 73 68 65 84 24 87 99 184 116 233 18 0 4 240 2 119 238 140 213 248 0 0 0 0 73 69 78 68 174 66 96 130
bwrite -c $qt(%f) 0 -1 &f
background -f %w $qt(%f)
.remove $qt(%f)
}
- Thanks!
Files
- Status changed from New to Invalid
There is no direct equivalent to mirc fill in .net, it's more like a zoom which is unfortunate.
Also for /background -r
its also not working correctly, somehow its changing the color.
I am not able to reproduce this using this script and only changing -f to -r.
Oh sorry, try this code instead:
alias bg_test_new {
var %w = @test_window
window -Bdk0j1000000 %w Consolas 12
var %f = $envvar(temp) $+ \black_bg.png
bset &f -1 137 80 78 71 13 10 26 10 0 0 0 13 73 72 68 82 0 0 0 1 0 0 0 1 8 2 0 0 0 144 119 83 222 0 0 0 1 115 82 71 66 0 174 206 28 233 0 0 0 4 103 65 77 65 0 0 177 143 11 252 97 5 0 0 0 9 112 72 89 115 0 0 14 195 0 0 14 195 1 199 111 168 100 0 0 0 12 73 68 65 84 24 87 99 96 96 96 0 0 0 4 0 1 92 205 255 105 0 0 0 0 73 69 78 68 174 66 96 130
bwrite -c $qt(%f) 0 -1 &f
background -r %w $qt(%f)
.remove $qt(%f)
}
.NET seems to see the image as having some sort of gradient from black to white, when stretched it seems to blend everything together. Possibly something related to interpolation.
Not sure.
Also available in: Atom
PDF