Skip to content

Commit e4ab967

Browse files
committed
cleanup
1 parent 42d1a9b commit e4ab967

File tree

4 files changed

+12
-46
lines changed

4 files changed

+12
-46
lines changed

bundles/org.eclipse.swt.svg/src/org/eclipse/swt/svg/JSVGRasterizer.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,18 @@
3535
import java.awt.RenderingHints.Key;
3636
import java.awt.image.BufferedImage;
3737
import java.awt.image.DataBufferInt;
38+
import java.io.ByteArrayInputStream;
39+
import java.io.ByteArrayOutputStream;
3840
import java.io.IOException;
3941
import java.io.InputStream;
42+
import java.io.OutputStream;
4043
import java.util.Map;
4144

4245
import org.eclipse.swt.SWT;
4346
import org.eclipse.swt.graphics.ImageData;
4447
import org.eclipse.swt.graphics.PaletteData;
45-
import org.eclipse.swt.graphics.RGB;
4648
import org.eclipse.swt.internal.image.SVGRasterizer;
49+
4750
import javax.xml.parsers.DocumentBuilder;
4851
import javax.xml.parsers.DocumentBuilderFactory;
4952
import javax.xml.parsers.ParserConfigurationException;

bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/SVGRasterizer.java

Lines changed: 0 additions & 36 deletions
This file was deleted.

bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/SVGFileFormat.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import org.eclipse.swt.*;
2020
import org.eclipse.swt.graphics.*;
21+
import org.eclipse.swt.internal.*;
2122
import org.eclipse.swt.internal.DPIUtil.*;
2223

2324
/**

bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/SVGRasterizer.java

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
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
*******************************************************************************/
1312
package org.eclipse.swt.internal.image;
1413

@@ -20,19 +19,18 @@
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
*/
2524
public 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
}

0 commit comments

Comments
 (0)