File tree Expand file tree Collapse file tree 4 files changed +12
-46
lines changed
org.eclipse.swt.svg/src/org/eclipse/swt/svg
org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal Expand file tree Collapse file tree 4 files changed +12
-46
lines changed Original file line number Diff line number Diff line change 3535import java .awt .RenderingHints .Key ;
3636import java .awt .image .BufferedImage ;
3737import java .awt .image .DataBufferInt ;
38+ import java .io .ByteArrayInputStream ;
39+ import java .io .ByteArrayOutputStream ;
3840import java .io .IOException ;
3941import java .io .InputStream ;
42+ import java .io .OutputStream ;
4043import java .util .Map ;
4144
4245import org .eclipse .swt .SWT ;
4346import org .eclipse .swt .graphics .ImageData ;
4447import org .eclipse .swt .graphics .PaletteData ;
45- import org .eclipse .swt .graphics .RGB ;
4648import org .eclipse .swt .internal .image .SVGRasterizer ;
49+
4750import javax .xml .parsers .DocumentBuilder ;
4851import javax .xml .parsers .DocumentBuilderFactory ;
4952import javax .xml .parsers .ParserConfigurationException ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1818
1919import org .eclipse .swt .*;
2020import org .eclipse .swt .graphics .*;
21+ import org .eclipse .swt .internal .*;
2122import org .eclipse .swt .internal .DPIUtil .*;
2223
2324/**
Original file line number Diff line number Diff line change 77 *
88 * SPDX-License-Identifier: EPL-2.0
99 *
10- * Contributors:
11- * Michael Bangas (Vector Informatik GmbH) - initial API and implementation
10+ * Contributors: Michael Bangas (Vector Informatik GmbH) - initial API and implementation
1211 *******************************************************************************/
1312package org .eclipse .swt .internal .image ;
1413
2019 * Defines the interface for an SVG rasterizer, responsible for converting SVG
2120 * data into rasterized images.
2221 *
23- * @since 3.130
22+ * @since 3.129
2423 */
2524public interface SVGRasterizer {
2625 /**
27- * Rasterizes an SVG image from the provided {@code InputStream} using the
28- * specified zoom factor.
26+ * Rasterizes an SVG image from the provided {@code InputStream} using the specified
27+ * zoom factor.
2928 *
3029 * @param stream the SVG image as an {@link InputStream}.
31- * @param zoom the scaling factor (in percent) e.g. 200 for doubled size. This value must
32- * not be 0.
30+ * @param zoom the scaling factor e.g. 200 for doubled size. This value must no be 0.
3331 * @return the {@link ImageData} for the rasterized image, or {@code null} if
3432 * the input is not a valid SVG file or cannot be processed.
35- * @throws IOException
33+ * @throws IOException if an error occurs while reading the SVG data.
3634 */
37- public ImageData [] rasterizeSVG (InputStream stream , int zoom ) throws IOException ;
35+ public ImageData [] rasterizeSVG (InputStream stream , int zoom , int flag ) throws IOException ;
3836}
You can’t perform that action at this time.
0 commit comments