Comments (2)
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.
from image32.
As you say. Just wanted to let you know that your library does not work correctly with colors 🙄
from image32.
Related Issues (20)
- rotate(270) does not adjust with and height for viewport and image when rendering HOT 1
- How to CopyFromBitmap and CopyToBitmap on Lazarus? HOT 8
- Wrong Encoding Detection when file has no BOM
- TImageFormat_QOI.SaveToStream declaration error
- Delphi 12 Packages
- Typos in Package HOT 2
- Layered images on top of a TPanel HOT 1
- SetRoundMode should be used with try/finally
- [Feature Request] A flag to enable/disable CropTransparentPixels
- SetRoundMode should not be used at all ;) HOT 13
- Issues when building Mac Os 64 Bit HOT 10
- (out of topic) Simple Sudoku HOT 2
- FR: SVG Image element HOT 7
- Png file shows only part of the SVG file HOT 4
- BicubicResample() and tiny height HOT 4
- Delphi 12.1 compilation for IOS and Android error HOT 1
- [dcc64 Error] Unit1.pas(216): E2003 Undeclared identifier: 'InterpolatePoints' when complie Vectorize demo HOT 1
- Missing JtBevel HOT 1
- Size limit : Good morning, the maximum width and height limits are arbitrarily blocked at 20000, why? Under Delphi, I create bitmaps with a size of 32767 X 16383 without any problem! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from image32.