Class RGB24ImageFormat

java.lang.Object
fr.esrf.tangoatk.widget.image.IImageFormat
fr.esrf.tangoatk.widget.image.RGB24ImageFormat
Direct Known Subclasses:
Jpeg24ImageFormat

public class RGB24ImageFormat extends IImageFormat
24 Bit RGB image format
  • Constructor Details

    • RGB24ImageFormat

      public RGB24ImageFormat()
  • Method Details

    • setData

      public void setData(byte[] rawData) throws IOException
      Description copied from class: IImageFormat
      Sets and decode the data.
      Specified by:
      setData in class IImageFormat
      Parameters:
      rawData - Pointer to image data
      Throws:
      IOException - In case of failure
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in class IImageFormat
      Returns:
      the width of the image depending on the format.
    • getName

      public String getName()
      Specified by:
      getName in class IImageFormat
      Returns:
      the format name.
    • isColorFormat

      public boolean isColorFormat()
      Specified by:
      isColorFormat in class IImageFormat
      Returns:
      true if this format is a color format, false otherwise.
    • getHistogramWidth

      public int getHistogramWidth()
      Specified by:
      getHistogramWidth in class IImageFormat
      Returns:
      the histogram width. (The number of possible value for a pixel)
    • getValue

      public double getValue(int x, int y)
      Description copied from class: IImageFormat
      Gets the pixel value as double (Used for table and profile display).
      Specified by:
      getValue in class IImageFormat
      Parameters:
      x - horizontal coordinate
      y - vertical coordinate
      Returns:
      Pixel value as double
    • getValueStr

      public String getValueStr(int x, int y)
      Description copied from class: IImageFormat
      Gets the pixel value as string (Used for pixel info display).
      Specified by:
      getValueStr in class IImageFormat
      Parameters:
      x - horizontal coordinate
      y - vertical coordinate
      Returns:
      Pixel value as String
    • computeFitting

      public void computeFitting()
      Description copied from class: IImageFormat
      Compute the fitting bounds (Monochrome only)
      Specified by:
      computeFitting in class IImageFormat
    • getRGB

      public int getRGB(boolean negative, int[] colormap16, int x, int y)
      Description copied from class: IImageFormat
      Returns the pixel at the specifed pos
      Specified by:
      getRGB in class IImageFormat
      Parameters:
      negative - Negative flag
      colormap16 - 16Bit colormap (Monochrome only)
      x - horizontal coordinate
      y - vertical coordinate
      Returns:
      the pixel at the specifed pos