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 ImageData
applyMatrix
(ImageData srcData, PermutationMatrix pm) Apply the specifiedPermutationMatrix
to the givenImageData
.static ImageData
changeImageColor
(Color color, ImageData originalImageData) Apply color change on an image.static ImageData
changeImageColor2
(Color color, ImageData originalImageData) static ImageData
convertToGrayscale
(ImageData originalImageData) Convert a colored image to grayscale image using average method.static void
crop
(org.eclipse.draw2d.geometry.Rectangle rect, org.eclipse.draw2d.geometry.Insets insets) Crop the given rectangle with the given insets.static void
oldChangeImageColor
(Color color, ImageData originalImageData) static ImageData
oldChangeImageColor2
(Color color, ImageData originalImageData)
-
Method Details
-
applyMatrix
Apply the specifiedPermutationMatrix
to 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
-