ISvgResourceKeeperCallback.OnImageResourceReady

ISvgResourceKeeperCallback.OnImageResourceReady method

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

public string OnImageResourceReady(byte[] imageData, SvgImageType imageType, 
    string suggestedFileName, ref bool useEmbeddedImage)
ParameterTypeDescription
imageDataByte[]The bytes of the raster image content
imageTypeSvgImageTypeType of the image.
suggestedFileNameStringName of the suggested file.
useEmbeddedImageBoolean&if set to true then image will be embedded into SVG.

Return Value

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.

See Also