'''' This code is part of Document Solutions for Imaging demos.'' Copyright (c) MESCIUS inc. All rights reserved.''ImportsSystemImportsSystem.IOImportsSystem.DrawingImportsSystem.Collections.GenericImportsSystem.LinqImportsSystem.NumericsImportsGrapeCity.Documents.DrawingImportsGrapeCity.Documents.TextImportsGrapeCity.Documents.ImagingImportsGrapeCity.Documents.Svg '' This sample shows how to render an SVGZ (compressed SVG) image.'' The SVG art used in this sample is from freesvg.org.PublicClassRenderSvgzPublicFunctionGenerateImage(pixelSize AsSize, dpi AsSingle, opaque AsBoolean, Optional sampleParams AsString() = Nothing) AsGcBitmapDim svgPath = Path.Combine("Resources", "SvgMisc", "Smiling-Girl.svgz")Using svg = GcSvgDocument.FromSvgz(File.ReadAllBytes(svgPath)) '' Render the SVG image and a border around it:Dim bmp = NewGcBitmap(pixelSize.Width, pixelSize.Height, opaque, dpi, dpi)Using g = bmp.CreateGraphics(Color.White)Dim pt = NewPointF(dpi, dpi) g.DrawSvg(svg, pt)Dim sz = svg.GetIntrinsicSize(SvgLengthUnits.Pixels) g.DrawRectangle(NewRectangleF(pt, sz), Color.MediumPurple)EndUsing '' Done:Return bmpEndUsingEndFunctionEndClass