Class ImageUtils
java.lang.Object
org.csstudio.swt.widgets.symbol.util.ImageUtils
Utility class to change image behavior like color, shape, rotation management, ...
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageDataapplyMatrix(ImageData srcData, PermutationMatrix pm) Apply the specifiedPermutationMatrixto the givenImageData.static ImageDatachangeImageColor(Color color, ImageData originalImageData) Apply color change on an image.static ImageDatachangeImageColor2(Color color, ImageData originalImageData) static ImageDataconvertToGrayscale(ImageData originalImageData) Convert a colored image to grayscale image using average method.static voidcrop(org.eclipse.draw2d.geometry.Rectangle rect, org.eclipse.draw2d.geometry.Insets insets) Crop the given rectangle with the given insets.static voidoldChangeImageColor(Color color, ImageData originalImageData) static ImageDataoldChangeImageColor2(Color color, ImageData originalImageData)
-
Method Details
-
applyMatrix
Apply the specifiedPermutationMatrixto the givenImageData. -
changeImageColor
Apply color change on an image. -
changeImageColor2
-
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
Convert a colored image to grayscale image using average method. -
oldChangeImageColor
-
oldChangeImageColor2
-