Class Jpeg

    • Field Detail

      • NOT_A_MARKER

        public static final int NOT_A_MARKER
        This is a type of marker.
        See Also:
        Constant Field Values
      • VALID_MARKER

        public static final int VALID_MARKER
        This is a type of marker.
        See Also:
        Constant Field Values
      • VALID_MARKERS

        public static final int[] VALID_MARKERS
        Acceptable Jpeg markers.
      • UNSUPPORTED_MARKER

        public static final int UNSUPPORTED_MARKER
        This is a type of marker.
        See Also:
        Constant Field Values
      • UNSUPPORTED_MARKERS

        public static final int[] UNSUPPORTED_MARKERS
        Unsupported Jpeg markers.
      • NOPARAM_MARKER

        public static final int NOPARAM_MARKER
        This is a type of marker.
        See Also:
        Constant Field Values
      • NOPARAM_MARKERS

        public static final int[] NOPARAM_MARKERS
        Jpeg markers without additional parameters.
      • JFIF_ID

        public static final byte[] JFIF_ID
        sequence that is used in all Jpeg files
      • PS_8BIM_RESO

        public static final byte[] PS_8BIM_RESO
        sequence preceding Photoshop resolution data
    • Constructor Detail

      • Jpeg

        public Jpeg​(java.net.URL url)
             throws BadElementException,
                    java.io.IOException
        Constructs a Jpeg-object, using an url.
        Parameters:
        url - the URL where the image can be found
        Throws:
        BadElementException
        java.io.IOException
      • Jpeg

        public Jpeg​(byte[] img)
             throws BadElementException,
                    java.io.IOException
        Constructs a Jpeg-object from memory.
        Parameters:
        img - the memory image
        Throws:
        BadElementException
        java.io.IOException
      • Jpeg

        public Jpeg​(byte[] img,
                    float width,
                    float height)
             throws BadElementException,
                    java.io.IOException
        Constructs a Jpeg-object from memory.
        Parameters:
        img - the memory image.
        width - the width you want the image to have
        height - the height you want the image to have
        Throws:
        BadElementException
        java.io.IOException