TIOParams.SVG_ImageCompression
TIOParams.SVG_ImageCompression
Declaration
property SVG_ImageCompression: TIOFileType;
Description
Specifies the format that is used when saving raster images within an SVG file.
If you specify
SVG_ImageCompression = -1, ioPNG will be used for images with transparency, otherwise ioJPEG.
Note:
◼SVG_ImageCompression should be a web-safe image format, such as ioPNG or ioJPEG
◼If
SVG_ImageCompression is ioJPEG, then the quality will be specified by
JPEG_QualityDefault: ioPNG
// Save current layers (compress transparent image layers as PNG, others as JPEG)
ImageEnView1.IO.Params.SVG_ImageCompression := -1;
ImageEnView1.IO.Params.JPEG_Quality := 80;
ImageEnView1.IO.SaveToFileSVG( 'D:\layers.SVG' );
// Save current layers (compress image layers as jpeg)
ImageEnView1.IO.Params.SVG_ImageCompression := ioJPEG;
ImageEnView1.IO.Params.SVG_Title := 'SVG file with JPEG layers';
ImageEnView1.IO.Params.JPEG_Quality := 80;
ImageEnView1.IO.SaveToFileSVG( 'D:\layers.SVG' );