Class ImageUtils

java.lang.Object
org.csstudio.swt.widgets.symbol.util.ImageUtils

public final class ImageUtils extends Object
Utility class to change image behavior like color, shape, rotation management, ...
  • Method Details

    • applyMatrix

      public static ImageData applyMatrix(ImageData srcData, PermutationMatrix pm)
      Apply the specified PermutationMatrix to the given ImageData.
    • changeImageColor

      public static ImageData changeImageColor(Color color, ImageData originalImageData)
      Apply color change on an image.
    • changeImageColor2

      public static ImageData changeImageColor2(Color color, ImageData originalImageData)
    • crop

      public static void crop(org.eclipse.draw2d.geometry.Rectangle rect, org.eclipse.draw2d.geometry.Insets insets)
      Crop the given rectangle with the given insets.
      Parameters:
      rect - rectangle to crop.
      insets -
    • convertToGrayscale

      public static ImageData convertToGrayscale(ImageData originalImageData)
      Convert a colored image to grayscale image using average method.
    • oldChangeImageColor

      public static void oldChangeImageColor(Color color, ImageData originalImageData)
    • oldChangeImageColor2

      public static ImageData oldChangeImageColor2(Color color, ImageData originalImageData)