Project

General

Profile

Actions

Bug #5753

closed

/background -f not filling correctly

Added by westor (GR) 10 months ago. Updated 10 months ago.

Status:
Invalid
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
07/12/2023
Due date:
% Done:

0%

Estimated time:
Operative System:
All
Regression:
No

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

Actions #2

Updated by Per Amundsen 10 months ago

  • 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.

Actions #3

Updated by westor (GR) 10 months ago

Also for /background -r its also not working correctly, somehow its changing the color.

Actions #4

Updated by Per Amundsen 10 months ago

I am not able to reproduce this using this script and only changing -f to -r.

Actions #5

Updated by westor (GR) 10 months ago

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)
}
Actions #6

Updated by Per Amundsen 10 months ago

.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.

Actions

Also available in: Atom PDF