2727
2828import org .apache .pdfbox .cos .COSArray ;
2929import org .apache .pdfbox .cos .COSBase ;
30- import org .apache .pdfbox .cos .COSInteger ;
3130import org .apache .pdfbox .cos .COSName ;
3231import org .apache .pdfbox .cos .COSNumber ;
3332import org .apache .pdfbox .cos .COSStream ;
@@ -54,19 +53,6 @@ public final class PDIndexed extends PDSpecialColorSpace
5453 private int actualMaxIndex ;
5554 private int [][] rgbColorTable ;
5655
57- /**
58- * Creates a new Indexed color space.
59- * Default DeviceRGB, hival 255.
60- */
61- public PDIndexed ()
62- {
63- array = new COSArray ();
64- array .add (COSName .INDEXED );
65- array .add (COSName .DEVICERGB );
66- array .add (COSInteger .get (255 ));
67- array .add (org .apache .pdfbox .cos .COSNull .NULL );
68- }
69-
7056 /**
7157 * Creates a new indexed color space from the given PDF array.
7258 *
@@ -305,25 +291,6 @@ private void readColorTable() throws IOException
305291 }
306292 }
307293
308- /**
309- * Sets the base color space.
310- * @param base the base color space
311- */
312- public void setBaseColorSpace (PDColorSpace base )
313- {
314- array .set (1 , base .getCOSObject ());
315- baseColorSpace = base ;
316- }
317-
318- /**
319- * Sets the highest value that is allowed. This cannot be higher than 255.
320- * @param high the highest value for the lookup table
321- */
322- public void setHighValue (int high )
323- {
324- array .set (2 , high );
325- }
326-
327294 @ Override
328295 public String toString ()
329296 {
0 commit comments