Class ImageData

    • Field Detail

      • serialId

        private static long serialId
        a static that is used for attributing a unique id to each image.
      • staticLock

        private static final java.lang.Object staticLock
      • url

        protected java.net.URL url
      • transparency

        protected int[] transparency
      • originalType

        protected ImageType originalType
      • width

        protected float width
      • height

        protected float height
      • data

        protected byte[] data
      • imageSize

        protected int imageSize
      • bpc

        protected int bpc
      • colorEncodingComponentsNumber

        protected int colorEncodingComponentsNumber
        Is the number of components used to encode colorspace.
      • decode

        protected float[] decode
      • decodeParms

        protected java.util.Map<java.lang.String,​java.lang.Object> decodeParms
      • inverted

        protected boolean inverted
      • rotation

        protected float rotation
      • dpiX

        protected int dpiX
      • dpiY

        protected int dpiY
      • colorTransform

        protected int colorTransform
      • deflated

        protected boolean deflated
      • mask

        protected boolean mask
      • interpolation

        protected boolean interpolation
      • XYRatio

        protected float XYRatio
      • filter

        protected java.lang.String filter
      • imageAttributes

        protected java.util.Map<java.lang.String,​java.lang.Object> imageAttributes
      • mySerialId

        protected java.lang.Long mySerialId
    • Constructor Detail

      • ImageData

        protected ImageData​(java.net.URL url,
                            ImageType type)
      • ImageData

        protected ImageData​(byte[] bytes,
                            ImageType type)
    • Method Detail

      • isRawImage

        public boolean isRawImage()
      • getUrl

        public java.net.URL getUrl()
      • setUrl

        public void setUrl​(java.net.URL url)
      • getTransparency

        public int[] getTransparency()
      • setTransparency

        public void setTransparency​(int[] transparency)
      • isInverted

        public boolean isInverted()
      • setInverted

        public void setInverted​(boolean inverted)
      • getRotation

        public float getRotation()
      • setRotation

        public void setRotation​(float rotation)
      • setProfile

        public void setProfile​(IccProfile profile)
      • getDpiX

        public int getDpiX()
      • getDpiY

        public int getDpiY()
      • setDpi

        public void setDpi​(int dpiX,
                           int dpiY)
      • getColorTransform

        public int getColorTransform()
      • setColorTransform

        public void setColorTransform​(int colorTransform)
      • isDeflated

        public boolean isDeflated()
      • setDeflated

        public void setDeflated​(boolean deflated)
      • getOriginalType

        public ImageType getOriginalType()
      • getColorEncodingComponentsNumber

        public int getColorEncodingComponentsNumber()
        Gets the number of components used to encode colorspace.
        Returns:
        the number of components used to encode colorspace
      • setColorEncodingComponentsNumber

        public void setColorEncodingComponentsNumber​(int colorEncodingComponentsNumber)
        Sets the number of components used to encode colorspace.
        Parameters:
        colorEncodingComponentsNumber - the number of components used to encode colorspace
      • getData

        public byte[] getData()
      • canBeMask

        public boolean canBeMask()
      • isMask

        public boolean isMask()
      • getImageMask

        public ImageData getImageMask()
      • setImageMask

        public void setImageMask​(ImageData imageMask)
      • isSoftMask

        public boolean isSoftMask()
      • makeMask

        public void makeMask()
      • getWidth

        public float getWidth()
      • setWidth

        public void setWidth​(float width)
      • getHeight

        public float getHeight()
      • setHeight

        public void setHeight​(float height)
      • getBpc

        public int getBpc()
      • setBpc

        public void setBpc​(int bpc)
      • isInterpolation

        public boolean isInterpolation()
      • setInterpolation

        public void setInterpolation​(boolean interpolation)
      • getXYRatio

        public float getXYRatio()
      • setXYRatio

        public void setXYRatio​(float XYRatio)
      • getImageAttributes

        public java.util.Map<java.lang.String,​java.lang.Object> getImageAttributes()
      • setImageAttributes

        public void setImageAttributes​(java.util.Map<java.lang.String,​java.lang.Object> imageAttributes)
      • getFilter

        public java.lang.String getFilter()
      • setFilter

        public void setFilter​(java.lang.String filter)
      • getDecodeParms

        public java.util.Map<java.lang.String,​java.lang.Object> getDecodeParms()
      • getDecode

        public float[] getDecode()
      • setDecode

        public void setDecode​(float[] decode)
      • canImageBeInline

        public boolean canImageBeInline()
        Checks if image can be inline
        Returns:
        if the image can be inline
      • loadData

        void loadData()
               throws java.io.IOException
        Load data from URL. url must be not null. Note, this method doesn't check if data or url is null.
        Throws:
        java.io.IOException
      • getSerialId

        private static java.lang.Long getSerialId()
        Creates a new serial id.
        Returns:
        the new serialId