Lazarus Win32.
If you have svg file with Style Attribute like this:
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.73382717px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
You got always black, full opaque elements because of
1) When you call for example:
val(AttributeOrStyle['fill-opacity'], result, errPos);
2) In AttributeOrStyle['fill-opacity'] you got '1.00;' (with semicolon), so, you got non zero error code and default value as the consequence.
Error in
procedure TSVGElement.LocateStyleDeclaration(AText: string; AProperty: string; out AStartPos,
AColonPos, AValueLength: integer);
I think AValueLength has wrong value.
Thank you for you lib!
Anonymous
Thanks for your help. It is fixed in version BGRABitmap 9.1