Table of Contents

Method OnImageResourceReady

Namespace
Aspose.CAD.ImageOptions.SvgOptionsParameters
Assembly
Aspose.CAD.dll

OnImageResourceReady(byte[], SvgImageType, string, ref bool)

Called for each raster image in SVG. Use it to specify how to store the raster image.

string OnImageResourceReady(byte[] imageData, SvgImageType imageType, string suggestedFileName, ref bool useEmbeddedImage)

Parameters

imageData byte[]

The bytes of the raster image content

imageType SvgImageType

Type of the image.

suggestedFileName string

Name of the suggested file.

useEmbeddedImage bool

if set to true then image will be embedded into SVG.

Returns

string

Should return path to saved resource. Path will be used in SVG image to refer to raster content. Path should be relative to target SVG document.