@@ -352,60 +352,6 @@ public ImageData(InputStream stream) {
352352 i .delayTime );
353353}
354354
355- /**
356- * Constructs an <code>ImageData</code> loaded from the specified
357- * input stream. Throws an error if an error occurs while loading
358- * the image, or if the image has an unsupported type. Application
359- * code is still responsible for closing the input stream.
360- *
361- * @param stream the input stream to load the image from (must not be null)
362- * @param fileZoom the zoom of the file from which the <code>ImageData</code> is loaded
363- * @param targetZoom the zoom for the returned <code>ImageData</code> (must be grater than 0)
364- *
365- * This case is equivalent to calling {@link ImageLoader#load(InputStream)}.
366- *
367- * A value above 0 specifies a scaling factor for the output image. For example:
368- * <ul>
369- * <li>A value of 100 maintains the original size of the SVG when rasterized.</li>
370- * <li>A value of 200 doubles the size of the rasterized image.</li>
371- * <li>A value of 50 reduces the size of the rasterized image to half.</li>
372- * </ul>
373- * The scaling is applied uniformly to both width and height.
374- *
375- * @exception IllegalArgumentException <ul>
376- * <li>ERROR_NULL_ARGUMENT - if the stream is null</li>
377- * </ul>
378- * @exception SWTException <ul>
379- * <li>ERROR_IO - if an IO error occurs while reading from the stream</li>
380- * <li>ERROR_INVALID_IMAGE - if the image stream contains invalid data</li>
381- * <li>ERROR_UNSUPPORTED_FORMAT - if the image stream contains an unrecognized format</li>
382- * </ul>
383- *
384- * @see ImageLoader#load(InputStream)
385- * @since 3.130
386- */
387- public ImageData (InputStream stream , int fileZoom , int targetZoom ) {
388- ImageData i = ImageDataLoader .load (stream , fileZoom , targetZoom ).element ();
389- setAllFields (
390- i .width ,
391- i .height ,
392- i .depth ,
393- i .scanlinePad ,
394- i .bytesPerLine ,
395- i .data ,
396- i .palette ,
397- i .transparentPixel ,
398- i .maskData ,
399- i .maskPad ,
400- i .alphaData ,
401- i .alpha ,
402- i .type ,
403- i .x ,
404- i .y ,
405- i .disposalMethod ,
406- i .delayTime );
407- }
408-
409355/**
410356 * Constructs an <code>ImageData</code> loaded from a file with the
411357 * specified name. Throws an error if an error occurs loading the
@@ -450,56 +396,6 @@ public ImageData(String filename) {
450396 i .delayTime );
451397}
452398
453- /**
454- * Constructs an <code>ImageData</code> loaded from a file with the
455- * specified name. Throws an error if an error occurs loading the
456- * image, or if the image has an unsupported type.
457- *
458- * @param filename the name of the file to load the image from (must not be null)
459- * @param fileZoom the zoom of the file from which the <code>ImageData</code> is loaded
460- * @param targetZoom the zoom for the returned <code>ImageData</code> (must be grater than 0)
461- *
462- * A value above 0 specifies a scaling factor for the output image. For example:
463- * <ul>
464- * <li>A value of 100 maintains the original size of the SVG when rasterized.</li>
465- * <li>A value of 200 doubles the size of the rasterized image.</li>
466- * <li>A value of 50 reduces the size of the rasterized image to half.</li>
467- * </ul>
468- * The scaling is applied uniformly to both width and height.
469- *
470- * @exception IllegalArgumentException <ul>
471- * <li>ERROR_NULL_ARGUMENT - if the file name is null</li>
472- * </ul>
473- * @exception SWTException <ul>
474- * <li>ERROR_IO - if an IO error occurs while reading from the file</li>
475- * <li>ERROR_INVALID_IMAGE - if the image file contains invalid data</li>
476- * <li>ERROR_UNSUPPORTED_FORMAT - if the image file contains an unrecognized format</li>
477- * </ul>
478- *
479- * @since 3.130
480- */
481- public ImageData (String filename , int fileZoom , int targetZoom ) {
482- ImageData i = ImageDataLoader .load (filename , fileZoom , targetZoom ).element ();
483- setAllFields (
484- i .width ,
485- i .height ,
486- i .depth ,
487- i .scanlinePad ,
488- i .bytesPerLine ,
489- i .data ,
490- i .palette ,
491- i .transparentPixel ,
492- i .maskData ,
493- i .maskPad ,
494- i .alphaData ,
495- i .alpha ,
496- i .type ,
497- i .x ,
498- i .y ,
499- i .disposalMethod ,
500- i .delayTime );
501- }
502-
503399/**
504400 * Prevents uninitialized instances from being created outside the package.
505401 */
0 commit comments