You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
program Img32_SVG_test;
{$APPTYPE CONSOLE}
{$R *.res}
uses
Classes, SysUtils,
Img32,
Img32.Fmt.SVG,
Img32.Fmt.BMP;
var
img: TImage32;
const
svg_text = '<svg width="2" height="2" fill="none" '+
'xmlns="http://www.w3.org/2000/svg">'+
'<path d="M0 .5h2M.5 0v2" stroke="#FFF"/></svg>';
begin
with TStringList.create do
try
text := svg_text;
SaveToFile('test.svg');
finally
free;
end;
img := TImage32.Create;
img.LoadFromFile('test.svg');
Writeln(Format('$%8.8x', [img.Pixels[0]]));
img.SaveToFile('test.bmp');
img.Free;
end.
The console displays: $FEFFFFFF
This minute decrement in the alpha channel in this pixel is presumably because it's immediately adjacent to the image edge.
This isn't something I'm going to chase. Sorry.
Hi there!
<svg width="128" height="128" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M0 0h128v128H0z"/></svg>
= 255, 255, 255
<svg width="2" height="2" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 .5h2M.5 0v2" stroke="#fff"/></svg>
= 254, 254, 254
Do you have any ideas how to fix it?
Source: Project1.zip
Original: EtheaDev/SVGIconImageList#273
The text was updated successfully, but these errors were encountered: