TSvgReader.GetViewbox

function GetViewbox(targetImgWidth, targetImgHeight: integer): TRectWH;


If an SVG has defined width and height values, then its viewbox values will be proportionally scaled to fill the values, otherwise the raw viewbox values will be returned. Sometimes an SVG will define its width and height using percentages to indicate that the image should be displayed as a percentage of the display surface. When this is the case, the supplied targetImgWidth and targetImgHeight parameters will be used as the reference for these percentage values.