Project

General

Profile

Bug #146

Load image - colour 0,0,0, and 255,255,255 not displaying properly after palette command

Added by Paul Kitching about 4 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
Start date:
02/06/2020
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

Both pure black and pure white are not displaying properly if you change the palette after the picture is loaded.

#manifest: "pc"
cls 0
load image "test.png"
palette $000000,$FFFFFF,$FF0000,$00FF00,$0000FF,$00FFFF,$FF00FF,$FFFF00,$BBBBBB,$BB0000,$00BB00,$0000BB,$00BBBB,$BB00BB,$BBBB00,$777777,$770000,$007700,$000077,$007777,$770077,$777700,$333333,$330000,$003300,$000033,$003333,$330033,$333300
wait key

This shows the picture correct if you put the palette before the load image command.
The two attached pics are of the loaded picture after the palette (black/white - correct), and before the palette (pink, dark grey, black, white - incorrect). The palette overrides the black and white of the loaded image.


Files

TestCapture.PNG (429 Bytes) TestCapture.PNG Paul Kitching, 02/06/2020 10:57 PM
test.png (573 Bytes) test.png Paul Kitching, 02/06/2020 10:57 PM
#1

Updated by Paul Kitching over 2 years ago

  • Status changed from New to Closed

Working in Beta 10.

Also available in: Atom PDF