Quickly determines whether the stream contains an SVG image.
public bool IsSvg(
Stream stream
)
Public Function IsSvg(
ByVal stream As System.IO.Stream
) As Boolean
public:
bool IsSvg(
System::IO::Stream^ stream
)
stream
The stream containing the source image data.
true if the data is valid SVG; otherwise, false.
This method will check the beginning of the file to determine whether it contains valid SVG data. This involves detecting the value <svg> tag and optionally the SVG namespaces. If this method returns true, then the data is most likely an SVG file and can be safely loaded. Note, however, that the data can possibly contain a corrupted or truncated SVG. In such a case, this method will still return true but subsequent calls to loading the SVG will fail.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET